Documentation ¶
Index ¶
- Constants
- func AddRelayTransport(p *DcMulti, relaystamp string) error
- func AddTransport(p *DcMulti, id, serverstamp string) (*serverinfo, error)
- type DcMulti
- func (proxy *DcMulti) Add(t x.DNSTransport) bool
- func (proxy *DcMulti) AddAll(serverscsv string) (int, error)
- func (proxy *DcMulti) AddGateways(routescsv string) (int, error)
- func (proxy *DcMulti) Get(id string) (x.DNSTransport, error)
- func (p *DcMulti) GetAddr() string
- func (p *DcMulti) ID() string
- func (proxy *DcMulti) LiveTransports() string
- func (p *DcMulti) P50() int64
- func (p *DcMulti) Query(network string, q *dns.Msg, smm *x.DNSSummary) (r *dns.Msg, err error)
- func (proxy *DcMulti) Refresh() (string, error)
- func (proxy *DcMulti) Remove(uid string) bool
- func (proxy *DcMulti) RemoveAll(servernamescsv string) (int, error)
- func (proxy *DcMulti) RemoveGateways(routescsv string) (int, error)
- func (p *DcMulti) Status() int
- func (proxy *DcMulti) Stop() error
- func (p *DcMulti) Type() string
- type ServersInfo
Constants ¶
View Source
const ( // NonceSize is what the name suggests NonceSize = 24 // TagSize is what the name suggests TagSize = 16 // HalfNonceSize is half of NonceSize HalfNonceSize = NonceSize / 2 // PublicKeySize is the size of a public key PublicKeySize = 32 // QueryOverhead is the amount of request overhead due to client-magic, public key, nonce, and tag QueryOverhead = xdns.ClientMagicLen + PublicKeySize + HalfNonceSize + TagSize // ResponseOverhead is the amount of answer overhead due to server-magic, nonce, and tag ResponseOverhead = len(xdns.ServerMagic) + NonceSize + TagSize )
View Source
const ( ActionNone = iota // No action has been taken ActionContinue // Continue with the request ActionDrop // Drop the request ActionSynth // Use synthesized response )
View Source
const ( ReturnCodePass = iota ReturnCodeSynth )
Variables ¶
This section is empty.
Functions ¶
func AddRelayTransport ¶
AddRelayTransport creates and adds a relay server to p
func AddTransport ¶
AddTransport creates and adds a dnscrypt transport to p
Types ¶
type DcMulti ¶
DcMulti is a dnsx.TransportMult supporting dnscrypt servers and relays
func (*DcMulti) Add ¶
func (proxy *DcMulti) Add(t x.DNSTransport) bool
Add implements dnsx.TransportMult
func (*DcMulti) AddGateways ¶
AddGateways adds relay servers
func (*DcMulti) Get ¶
func (proxy *DcMulti) Get(id string) (x.DNSTransport, error)
Get implements dnsx.TransportMult
func (*DcMulti) LiveTransports ¶
LiveTransports returns csv of dnscrypt server-names currently in-use
func (*DcMulti) RemoveGateways ¶
RemoveGateways removes relay servers
type ServersInfo ¶
Click to show internal directories.
Click to hide internal directories.