Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ahmetb/runsd
/ functions
Functions
37 in github.com/ahmetb/runsd
⨍
Functions
37
◇
Types & classes
4
↓ 5 callers
Method
newServer
(net, addr string)
runsd/dns.go:82
↓ 4 callers
Function
resolver
(nameserver string)
runsd/dnshijack.go:51
↓ 3 callers
Method
Flush
ensure it's a Flusher
runsd/proxytransport.go:69
↓ 3 callers
Function
newTestDNSServer
newTestDNSServer starts a new DNS server with the provided
runsd/dns_test.go:131
↓ 3 callers
Function
nxdomain
nxdomain sends an authoritative NXDOMAIN (domain not found) reply
runsd/dns.go:171
↓ 2 callers
Function
mkCloudRunHost
(svc, regionCode, projectHash string)
runsd/proxy.go:116
↓ 2 callers
Function
queryMetadata
(url string)
runsd/regions.go:68
↓ 1 callers
Method
RoundTrip
(req *http.Request)
runsd/proxytransport.go:75
↓ 1 callers
Function
allowh2c
(next http.Handler)
runsd/proxy.go:120
↓ 1 callers
Function
cloudRunZones
(region, domain string)
runsd/dnshijack.go:44
↓ 1 callers
Function
configureResolvConf
(path string, nameservers []string, searchDomains []string, ndots int)
runsd/dnshijack.go:25
↓ 1 callers
Function
dnsLogger
(d dns.HandlerFunc)
runsd/dns.go:48
↓ 1 callers
Method
handler
()
runsd/dns.go:32
↓ 1 callers
Function
identityToken
(audience string)
runsd/authn.go:22
↓ 1 callers
Function
identityTokenFromMetadata
(audience string)
runsd/authn.go:29
↓ 1 callers
Function
ipv6Available
()
runsd/main.go:281
↓ 1 callers
Function
newReverseProxy
(projectHash, currentRegion, internalDomain string)
runsd/proxy.go:39
↓ 1 callers
Method
newReverseProxyHandler
(tr http.RoundTripper)
runsd/proxy.go:51
↓ 1 callers
Method
recurse
recurse proxies the message to the backend nameserver.
runsd/dns.go:153
↓ 1 callers
Function
regionFromMetadata
()
runsd/regions.go:56
↓ 1 callers
Function
resolveCloudRunHost
(internalDomain, hostname, curRegion, projectHash string)
runsd/proxy.go:89
↓ 1 callers
Function
resolveUser
(uidOrUser string)
runsd/user.go:9
↓ 1 callers
Function
servfail
servfail an authoritative SERVFAIL (error) reply
runsd/dns.go:181
Method
Flush
ensure it's a Flusher
runsd/proxytransport.go:33
Method
RoundTrip
(req *http.Request)
runsd/proxytransport.go:39
Function
TestDNSExternalRecursion
(t *testing.T)
runsd/dns_test.go:95
Function
TestDNSInternalIPv4Only
(t *testing.T)
runsd/dns_test.go:74
Function
TestDNSInternalLookups
(t *testing.T)
runsd/dns_test.go:29
Function
curl
(w http.ResponseWriter, req *http.Request)
example/main.go:93
Function
dig
(w http.ResponseWriter, r *http.Request)
example/main.go:136
Method
handleLocal
(w dns.ResponseWriter, msg *dns.Msg)
runsd/dns.go:90
Function
home
(w http.ResponseWriter, req *http.Request)
example/main.go:42
Function
main
()
example/main.go:29
Function
main
()
runsd/main.go:63
Function
resolvconf
(w http.ResponseWriter, r *http.Request)
example/main.go:152
Method
tempHandleMetadataZone
(w dns.ResponseWriter, msg *dns.Msg)
runsd/dns.go:57
Function
uid
(w http.ResponseWriter, r *http.Request)
example/main.go:157