Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthServer ¶
AuthServer type
func NewAuthServer ¶
func NewAuthServer(host string, mode Mode) *AuthServer
NewAuthServer return a server
func (*AuthServer) String ¶
func (a *AuthServer) String() string
type AuthServers ¶
type AuthServers struct {
sync.RWMutex
List []*AuthServer
// contains filtered or unexported fields
}
AuthServers type
func (*AuthServers) TrySort ¶
func (s *AuthServers) TrySort() bool
TrySort if necessary sort servers by rtt
type NS ¶
type NS struct {
Servers *AuthServers
DSRR []dns.RR
TTL time.Duration
// contains filtered or unexported fields
}
NS represents a cache entry
Click to show internal directories.
Click to hide internal directories.