Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DonnchaC/oniongateway
/ functions
Functions
76 in github.com/DonnchaC/oniongateway
⨍
Functions
76
◇
Types & classes
22
↓ 18 callers
Method
Addr
()
entry_proxy/proxy.go:104
↓ 8 callers
Function
getHostPort
(location string)
check_entry_proxy/checker_test.go:151
↓ 7 callers
Method
CheckEntryProxy
CheckEntryProxy checks entry_proxy instance
check_entry_proxy/checker.go:105
↓ 7 callers
Method
CheckRedirect
CheckRedirect checks if redirect works
check_entry_proxy/checker.go:125
↓ 7 callers
Method
Dial
(string)
entry_proxy/proxy.go:26
↓ 7 callers
Function
makeRedirectingHTTPServer
(code, port int, overrideHost string)
check_entry_proxy/checker_test.go:127
↓ 5 callers
Method
Listen
(listenNet, listenAddr string)
entry_proxy/proxy.go:85
↓ 5 callers
Function
NewDnsHostToOnionResolver
()
entry_proxy/resolve_to_onion.go:29
↓ 3 callers
Function
NewRedirect
NewRedirect returns redirecting HTTP server, which listens on `listenOn` and redirects to `redirectTo`. Entry proxy is expected to listen on `redirect
entry_proxy/redirect.go:14
↓ 3 callers
Method
ResolveToOnion
(hostname string)
entry_proxy/resolve_to_onion.go:36
↓ 3 callers
Function
makeMockChecker
( expectedText, observedText, url string, )
check_entry_proxy/checker_test.go:25
↓ 3 callers
Function
makeRealChecker
( expectedText, observedText string, )
check_entry_proxy/checker_test.go:83
↓ 2 callers
Method
CheckHost
CheckHost checks both redirect and proxy
check_entry_proxy/checker.go:159
↓ 2 callers
Method
LookupTXT
(string)
entry_proxy/resolve_to_onion.go:10
↓ 2 callers
Function
NewSocksDialer
(proxyNet, proxyAddr string)
entry_proxy/proxy.go:35
↓ 2 callers
Function
NewTLSProxy
( onionPort int, proxyNet, proxyAddr string, resolver HostToOnionResolver, )
entry_proxy/proxy.go:69
↓ 2 callers
Method
ServerNameFromConn
(c net.Conn)
entry_proxy/proxy.go:15
↓ 2 callers
Method
Start
()
entry_proxy/proxy.go:93
↓ 2 callers
Function
getResponse
(theURL string, client http.Client)
check_entry_proxy/checker.go:61
↓ 2 callers
Method
makeHTTPClient
(address string)
check_entry_proxy/checker.go:28
↓ 2 callers
Function
makeHTTPServer
(observedText string)
check_entry_proxy/checker_test.go:14
↓ 1 callers
Method
Dial
(targetServer string)
entry_proxy/proxy.go:47
↓ 1 callers
Method
Error
()
util/ignore_redirect.go:11
↓ 1 callers
Function
IsRedirectError
IsRedirectError returns if error of client.Get is the ignored redirect
util/ignore_redirect.go:24
↓ 1 callers
Function
NewAccumulatingListener
(net, address string)
entry_proxy/proxy_test.go:113
↓ 1 callers
Function
NewMockProxyDialer
(proxyNet, proxyAddr string)
entry_proxy/proxy_test.go:168
↓ 1 callers
Function
NewMortalService
NewMortalService creates a new MortalService
entry_proxy/proxy_test.go:26
↓ 1 callers
Function
NewSubdomainResolver
(parent_domain string)
entry_proxy/subdomain_resolver.go:14
↓ 1 callers
Method
ProcessRequest
(clientConn net.Conn)
entry_proxy/proxy.go:108
↓ 1 callers
Method
ResolveToOnion
(hostname string)
entry_proxy/resolve_to_onion.go:21
↓ 1 callers
Method
Start
Start the MortalService
entry_proxy/proxy_test.go:40
↓ 1 callers
Method
Start
()
entry_proxy/proxy_test.go:124
↓ 1 callers
Method
Stop
Stop will kill our listener and all it's connections
entry_proxy/proxy_test.go:53
↓ 1 callers
Method
Stop
()
entry_proxy/proxy_test.go:132
↓ 1 callers
Method
acceptLoop
()
entry_proxy/proxy_test.go:62
↓ 1 callers
Function
checkResponse
(rule Rule, body string)
check_entry_proxy/checker.go:92
↓ 1 callers
Method
chooseRedirectURL
()
check_entry_proxy/checker.go:52
↓ 1 callers
Method
chooseRule
()
check_entry_proxy/checker.go:44
↓ 1 callers
Function
getLocation
(url string, client http.Client)
check_entry_proxy/checker.go:77
↓ 1 callers
Method
handleConnection
(conn net.Conn, id int)
entry_proxy/proxy_test.go:90
Method
Dial
(targetServer string)
entry_proxy/proxy_test.go:176
Function
IgnoreRedirect
IgnoreRedirect always returns special error type. Provide CheckRedirect=IgnoreRedirect to http.Client to prevent it from following redirects. Use IsRe
util/ignore_redirect.go:19
Method
LookupTXT
(hostname string)
entry_proxy/resolve_to_onion.go:15
Method
LookupTXT
(hostname string)
entry_proxy/resolve_to_onion_test.go:10
Method
LookupTXT
(hostname string)
entry_proxy/resolve_to_onion_test.go:25
Method
LookupTXT
(hostname string)
entry_proxy/resolve_to_onion_test.go:40
Method
LookupTXT
(hostname string)
entry_proxy/proxy_test.go:159
Method
ResolveToOnion
(host string)
entry_proxy/static_resolver.go:13
Method
ResolveToOnion
(host string)
entry_proxy/subdomain_resolver.go:21
Method
ServerNameFromConn
(clientConn net.Conn)
entry_proxy/proxy.go:20
Method
ServerNameFromConn
(clientConn net.Conn)
entry_proxy/proxy_test.go:153
Method
SessionWorker
(conn net.Conn)
entry_proxy/proxy_test.go:137
Function
TestCheckEntryProxy
(t *testing.T)
check_entry_proxy/checker_test.go:44
Function
TestCheckEntryProxyEmptyRules
(t *testing.T)
check_entry_proxy/checker_test.go:119
Function
TestCheckEntryProxyFailDownloading
(t *testing.T)
check_entry_proxy/checker_test.go:70
Function
TestCheckEntryProxyFailNotContains
(t *testing.T)
check_entry_proxy/checker_test.go:57
Function
TestCheckEntryProxyReal
(t *testing.T)
check_entry_proxy/checker_test.go:101
Function
TestCheckEntryProxyRealFail
(t *testing.T)
check_entry_proxy/checker_test.go:110
Function
TestCheckHost
(t *testing.T)
check_entry_proxy/checker_test.go:261
Function
TestCheckRedirect
(t *testing.T)
check_entry_proxy/checker_test.go:164
Function
TestCheckRedirectEmptyRules
(t *testing.T)
check_entry_proxy/checker_test.go:249
Function
TestCheckRedirectNonStandardPort
(t *testing.T)
check_entry_proxy/checker_test.go:181
Function
TestCheckRedirectOtherHTTPStatus
(t *testing.T)
check_entry_proxy/checker_test.go:232
Function
TestCheckRedirectOtherHost
(t *testing.T)
check_entry_proxy/checker_test.go:198
Function
TestCheckRedirectOtherPort
(t *testing.T)
check_entry_proxy/checker_test.go:215
Function
TestEmptyMockTxtResolver
(t *testing.T)
entry_proxy/resolve_to_onion_test.go:14
Function
TestIgnoreRedirect
(t *testing.T)
util/ignore_redirect_test.go:10
Function
TestNewRedirect
(t *testing.T)
entry_proxy/redirect_test.go:14
Function
TestNoOnionsMockTxtResolver
(t *testing.T)
entry_proxy/resolve_to_onion_test.go:29
Function
TestPassThrough
(t *testing.T)
entry_proxy/redirect_test.go:59
Function
TestTLSProxy
(t *testing.T)
entry_proxy/proxy_test.go:181
Function
TestThrowingMockTxtResolver
(t *testing.T)
entry_proxy/resolve_to_onion_test.go:44
Function
cryptoRandInt
(upperBound int)
check_entry_proxy/main.go:14
Function
main
This module does nothing and is needed for go test github.com/DonnchaC/oniongateway/...
main.go:6
Function
main
()
check_entry_proxy/main.go:45
Function
main
()
entry_proxy/main.go:22