Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Sort ¶ added in v1.0.0
func Sort(serversList []*AuthServer, called uint64)
Sort sort servers by rtt
Types ¶
type AuthServer ¶
AuthServer type
func NewAuthServer ¶
func NewAuthServer(addr string, version Version) *AuthServer
NewAuthServer return a new server
func (*AuthServer) String ¶
func (a *AuthServer) String() string
type AuthServers ¶
type AuthServers struct {
sync.RWMutex
Zone string
List []*AuthServer
Nss []string
ErrorCount uint32
Called uint64
CheckingDisable bool
Checked bool
}
AuthServers type
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.