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 ¶
type AuthServer struct { // place atomic members at the start to fix alignment for ARM32 Rtt int64 Count int64 Addr string Version Version }
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 // place atomic members at the start to fix alignment for ARM32 Called uint64 ErrorCount uint32 Zone string List []*AuthServer Nss []string 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.