Open ignoramous opened 5 months ago
multiserver:chooseAny
, Volatile:Load/Swap
is a type-generic fn.
/home/murtaza/bravehub/firestack/intra/dnscrypt/multiserver.go:86:1: chooseAny returns generic interface (T) of type param any
/home/murtaza/bravehub/firestack/intra/core/volatile.go:21:1: Load returns generic interface (T) of type param any
/home/murtaza/bravehub/firestack/intra/core/volatile.go:42:1: Swap returns generic interface (T) of type param any
multiserver:Get
must confirm to backend.DNSTransport
.
/home/murtaza/bravehub/firestack/intra/dnscrypt/multiserver.go:571:1: Get returns interface (github.com/celzero/firestack/intra/backend.DNSTransport)
backend
exposes interfaces to kt/java:
/home/murtaza/bravehub/firestack/intra/backend/core_iptree.go:76:1: NewIpTree returns interface (github.com/celzero/firestack/intra/backend.IpTree)
/home/murtaza/bravehub/firestack/intra/backend/core_radixtree.go:46:1: NewRadixTree returns interface (github.com/celzero/firestack/intra/backend.RadixTree)
/home/murtaza/bravehub/firestack/intra/backend/ipn_pipkeygen.go:83:1: NewPipKey returns interface (github.com/celzero/firestack/intra/backend.PipKey)
/home/murtaza/bravehub/firestack/intra/backend/ipn_wgkeygen.go:61:1: Mult returns interface (github.com/celzero/firestack/intra/backend.WgKey)
/home/murtaza/bravehub/firestack/intra/backend/ipn_wgkeygen.go:76:1: NewWgPrivateKey returns interface (github.com/celzero/firestack/intra/backend.WgKey)
/home/murtaza/bravehub/firestack/intra/backend/ipn_wgkeygen.go:99:1: NewWgPrivateKeyOf returns interface (github.com/celzero/firestack/intra/backend.WgKey)
return value to a common interface; ex: dnsutil:ToIp6Hint
may return either HTTPS
or SVCB
rr.
/home/murtaza/bravehub/firestack/intra/xdns/dnsutil.go:1062:1: ToIp6Hint returns interface (github.com/miekg/dns.RR)
...
/home/murtaza/bravehub/firestack/intra/ipn/proxy.go:26:1: AddProxy returns interface (github.com/celzero/firestack/intra/backend.Proxy)
/home/murtaza/bravehub/firestack/intra/ipn/proxy.go:30:1: addProxy returns interface (github.com/celzero/firestack/intra/ipn.Proxy)
... must conform to the interface contract.
/home/murtaza/bravehub/firestack/intra/rnet/servers.go:109:1: AddServer returns interface (github.com/celzero/firestack/intra/rnet.Server)
/home/murtaza/bravehub/firestack/intra/rnet/servers.go:176:1: GetServer returns interface (github.com/celzero/firestack/intra/rnet.Server)
...
/home/murtaza/bravehub/firestack/intra/dnsx/transport.go:172:1: Gateway returns interface (github.com/celzero/firestack/intra/dnsx.Gateway)
/home/murtaza/bravehub/firestack/intra/dnsx/transport.go:218:1: GetMult returns interface (github.com/celzero/firestack/intra/dnsx.TransportMult)
/home/murtaza/bravehub/firestack/intra/dnsx/transport.go:232:1: dcProxy returns interface (github.com/celzero/firestack/intra/dnsx.TransportMult)
/home/murtaza/bravehub/firestack/intra/dnsx/transport.go:236:1: Get returns interface (github.com/celzero/firestack/intra/backend.DNSTransport)
/home/murtaza/bravehub/firestack/intra/dnsx/transport.go:454:1: determineTransport returns interface (github.com/celzero/firestack/intra/dnsx.Transport)
...
/home/murtaza/bravehub/firestack/intra/ipn/base.go:94:1: Router returns interface (github.com/celzero/firestack/intra/backend.Router)
/home/murtaza/bravehub/firestack/intra/ipn/exit.go:102:1: Router returns interface (github.com/celzero/firestack/intra/backend.Router)
/home/murtaza/bravehub/firestack/intra/ipn/ground.go:62:1: Router returns interface (github.com/celzero/firestack/intra/backend.Router)
/home/murtaza/bravehub/firestack/intra/ipn/http1.go:123:1: Router returns interface (github.com/celzero/firestack/intra/backend.Router)
/home/murtaza/bravehub/firestack/intra/ipn/piph2.go:237:1: Router returns interface (github.com/celzero/firestack/intra/backend.Router)
/home/murtaza/bravehub/firestack/intra/ipn/pipws.go:173:1: Router returns interface (github.com/celzero/firestack/intra/backend.Router)
/home/murtaza/bravehub/firestack/intra/ipn/proxies.go:218:1: Router returns interface (github.com/celzero/firestack/intra/backend.Router)
/home/murtaza/bravehub/firestack/intra/ipn/socks5.go:196:1: Router returns interface (github.com/celzero/firestack/intra/backend.Router)
/home/murtaza/bravehub/firestack/intra/ipn/wgproxy.go:711:1: Router returns interface (github.com/celzero/firestack/intra/backend.Router)
...
/home/murtaza/bravehub/firestack/intra/dnsx/undelegated.go:164:1: newUndelegatedDomainsTrie returns interface (github.com/celzero/firestack/intra/backend.RadixTree)
...
/home/murtaza/bravehub/firestack/intra/dnsx/wall.go:67:1: GetRdnsLocal returns interface (github.com/celzero/firestack/intra/backend.RDNS)
/home/murtaza/bravehub/firestack/intra/dnsx/wall.go:78:1: GetRdnsRemote returns interface (github.com/celzero/firestack/intra/backend.RDNS)
...
/home/murtaza/bravehub/firestack/intra/ipn/wg/wgconn.go:74:1: ParseEndpoint returns interface (golang.zx2c4.com/wireguard/conn.Endpoint)
/home/murtaza/bravehub/firestack/intra/ipn/wg/wgconn.go:400:1: asEndpoint returns interface (golang.zx2c4.com/wireguard/conn.Endpoint)
/home/murtaza/bravehub/firestack/intra/ipn/wg/wgconn2.go:152:1: ParseEndpoint returns interface (golang.zx2c4.com/wireguard/conn.Endpoint)
...
/home/murtaza/bravehub/firestack/intra/ipn/proxies.go:200:1: ProxyFor returns interface (github.com/celzero/firestack/intra/ipn.Proxy)
/home/murtaza/bravehub/firestack/intra/ipn/proxies.go:214:1: GetProxy returns interface (github.com/celzero/firestack/intra/backend.Proxy)
...
cacher:NewCachingTransport
is a decorator on interface dnsx.Transport
and returns the same interface.
/home/murtaza/bravehub/firestack/intra/dnsx/cacher.go:88:1: NewDefaultCachingTransport returns interface (github.com/celzero/firestack/intra/dnsx.Transport)
/home/murtaza/bravehub/firestack/intra/dnsx/cacher.go:92:1: NewCachingTransport returns interface (github.com/celzero/firestack/intra/dnsx.Transport)
https://blog.theodo.com/2022/08/go-nil-interfaces/