SYMBOL INDEX (54 symbols across 1 files) FILE: FlareTunnel.go constant Version (line 34) | Version = "1.0.0" constant CloudflareBaseURL (line 35) | CloudflareBaseURL = "https://api.cloudflare.com/client/v4" constant WorkerScript (line 36) | WorkerScript = `/** type Account (line 177) | type Account struct type Config (line 185) | type Config struct type Worker (line 190) | type Worker struct type Analytics (line 200) | type Analytics struct type CloudflareClient (line 212) | type CloudflareClient struct method GetSubdomain (line 232) | func (c *CloudflareClient) GetSubdomain() (string, error) { method CreateWorker (line 273) | func (c *CloudflareClient) CreateWorker(name string) (*Worker, error) { method ListWorkers (line 335) | func (c *CloudflareClient) ListWorkers() ([]*Worker, error) { method DeleteWorker (line 381) | func (c *CloudflareClient) DeleteWorker(name string) error { method GetAnalytics (line 406) | func (c *CloudflareClient) GetAnalytics() (*Analytics, error) { function NewCloudflareClient (line 220) | func NewCloudflareClient(apiToken, accountID string) *CloudflareClient { function generateCACert (line 514) | func generateCACert(certPath, keyPath string) error { function generateHostCert (line 571) | func generateHostCert(hostname, caCertPath, caKeyPath string) (*tls.Cert... type FlareTunnel (line 641) | type FlareTunnel struct method SaveEndpoints (line 693) | func (ft *FlareTunnel) SaveEndpoints(workers []*Worker) error { method LoadEndpoints (line 702) | func (ft *FlareTunnel) LoadEndpoints() ([]*Worker, error) { method SyncEndpoints (line 721) | func (ft *FlareTunnel) SyncEndpoints() ([]*Worker, error) { method CreateWorkers (line 743) | func (ft *FlareTunnel) CreateWorkers(count int, accountName string, di... method ListWorkers (line 861) | func (ft *FlareTunnel) ListWorkers(verbose, checkStatus bool) error { method CleanupWorkers (line 979) | func (ft *FlareTunnel) CleanupWorkers(accountName string) error { method TestWorkers (line 1018) | func (ft *FlareTunnel) TestWorkers(targetURL, method string) error { method ExportConfig (line 1088) | func (ft *FlareTunnel) ExportConfig(outputFile string) error { method ImportConfig (line 1129) | func (ft *FlareTunnel) ImportConfig(inputFile string, merge bool) error { function NewFlareTunnel (line 650) | func NewFlareTunnel(configFile string) (*FlareTunnel, error) { function loadConfig (line 674) | func loadConfig(path string) (*Config, error) { function min (line 1218) | func min(a, b int) int { function fileExists (line 1225) | func fileExists(path string) bool { type ProxyServer (line 1234) | type ProxyServer struct method LoadWorkers (line 1266) | func (ps *ProxyServer) LoadWorkers(endpointsFile string, workerIndices... method LoadBlacklist (line 1292) | func (ps *ProxyServer) LoadBlacklist(blacklistFile string) error { method GetWorkerURL (line 1328) | func (ps *ProxyServer) GetWorkerURL() string { method IsBlacklisted (line 1347) | func (ps *ProxyServer) IsBlacklisted(targetURL string) bool { method HandleHTTP (line 1380) | func (ps *ProxyServer) HandleHTTP(w http.ResponseWriter, r *http.Reque... method HandleCONNECT (line 1474) | func (ps *ProxyServer) HandleCONNECT(w http.ResponseWriter, r *http.Re... method Start (line 1624) | func (ps *ProxyServer) Start(blacklistFile string) error { function NewProxyServer (line 1256) | func NewProxyServer(host string, port int) *ProxyServer { function generateWorkerName (line 1738) | func generateWorkerName() string { function randomString (line 1744) | func randomString(n int) string { function isIPAddress (line 1754) | func isIPAddress(hostname string) bool { function testWorker (line 1760) | func testWorker(workerURL string) bool { function max (line 1771) | func max(a, b int) int { function sumMap (line 1778) | func sumMap(m map[string]int) int { type simpleMultipartWriter (line 1787) | type simpleMultipartWriter struct method WriteField (line 1799) | func (w *simpleMultipartWriter) WriteField(field, value string) { method Close (line 1805) | func (w *simpleMultipartWriter) Close() { method FormDataContentType (line 1809) | func (w *simpleMultipartWriter) FormDataContentType() string { function multipartWriter (line 1792) | func multipartWriter(buf *bytes.Buffer) *simpleMultipartWriter { function setupConfig (line 1817) | func setupConfig() error { function parseWorkerIndices (line 1918) | func parseWorkerIndices(indicesStr string) []int { function main (line 1949) | func main() { function printHelp (line 2221) | func printHelp() {