Documentation ¶
Index ¶
- Constants
- type ARecord
- type CacheServer
- type DomainRecord
- type LocalNameServer
- type NameServer
- type PendingRequest
- type UDPNameServer
- func (s *UDPNameServer) AssignUnusedID(response chan<- *ARecord) uint16
- func (s *UDPNameServer) BuildQueryA(domain string, id uint16) *buf.Buffer
- func (s *UDPNameServer) Cleanup()
- func (s *UDPNameServer) HandleResponse(payload *buf.Buffer)
- func (s *UDPNameServer) QueryA(domain string) <-chan *ARecord
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheServer ¶
func NewCacheServer ¶
func (*CacheServer) Close ¶
func (*CacheServer) Close()
func (*CacheServer) Get ¶
func (s *CacheServer) Get(domain string) []net.IP
func (*CacheServer) GetCached ¶
func (s *CacheServer) GetCached(domain string) []net.IP
func (*CacheServer) Interface ¶
func (*CacheServer) Interface() interface{}
func (*CacheServer) Start ¶
func (*CacheServer) Start() error
type DomainRecord ¶
func (*DomainRecord) Expired ¶
func (r *DomainRecord) Expired() bool
func (*DomainRecord) Inactive ¶
func (r *DomainRecord) Inactive() bool
type LocalNameServer ¶
type LocalNameServer struct { }
func (*LocalNameServer) QueryA ¶
func (*LocalNameServer) QueryA(domain string) <-chan *ARecord
type PendingRequest ¶
type PendingRequest struct {
// contains filtered or unexported fields
}
type UDPNameServer ¶
func NewUDPNameServer ¶
func NewUDPNameServer(address net.Destination, dispatcher dispatcher.Interface) *UDPNameServer
func (*UDPNameServer) AssignUnusedID ¶
func (s *UDPNameServer) AssignUnusedID(response chan<- *ARecord) uint16
func (*UDPNameServer) BuildQueryA ¶
func (s *UDPNameServer) BuildQueryA(domain string, id uint16) *buf.Buffer
func (*UDPNameServer) Cleanup ¶
func (s *UDPNameServer) Cleanup()
func (*UDPNameServer) HandleResponse ¶
func (s *UDPNameServer) HandleResponse(payload *buf.Buffer)
func (*UDPNameServer) QueryA ¶
func (s *UDPNameServer) QueryA(domain string) <-chan *ARecord
Click to show internal directories.
Click to hide internal directories.