Documentation ¶
Index ¶
- Constants
- type ARecord
- type CacheServer
- type CacheServerFactory
- type DomainRecord
- type LocalNameServer
- type NameServer
- type PendingRequest
- type UDPNameServer
- func (v *UDPNameServer) AssignUnusedID(response chan<- *ARecord) uint16
- func (v *UDPNameServer) BuildQueryA(domain string, id uint16) *buf.Buffer
- func (v *UDPNameServer) Cleanup()
- func (v *UDPNameServer) DispatchQuery(payload *buf.Buffer)
- func (v *UDPNameServer) HandleResponse(dest v2net.Destination, payload *buf.Buffer)
- func (v *UDPNameServer) QueryA(domain string) <-chan *ARecord
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheServer ¶
func (*CacheServer) Get ¶
func (v *CacheServer) Get(domain string) []net.IP
func (*CacheServer) GetCached ¶
func (v *CacheServer) GetCached(domain string) []net.IP
Private: Visible for testing.
type CacheServerFactory ¶
type CacheServerFactory struct{}
func (CacheServerFactory) AppId ¶
func (v CacheServerFactory) AppId() app.ID
func (CacheServerFactory) Create ¶
func (v CacheServerFactory) Create(space app.Space, config interface{}) (app.Application, error)
type LocalNameServer ¶
type LocalNameServer struct { }
func (*LocalNameServer) QueryA ¶
func (v *LocalNameServer) QueryA(domain string) <-chan *ARecord
type PendingRequest ¶
type PendingRequest struct {
// contains filtered or unexported fields
}
type UDPNameServer ¶
func NewUDPNameServer ¶
func NewUDPNameServer(address v2net.Destination, dispatcher dispatcher.PacketDispatcher) *UDPNameServer
func (*UDPNameServer) AssignUnusedID ¶
func (v *UDPNameServer) AssignUnusedID(response chan<- *ARecord) uint16
Private: Visible for testing.
func (*UDPNameServer) BuildQueryA ¶
func (v *UDPNameServer) BuildQueryA(domain string, id uint16) *buf.Buffer
func (*UDPNameServer) DispatchQuery ¶
func (v *UDPNameServer) DispatchQuery(payload *buf.Buffer)
func (*UDPNameServer) HandleResponse ¶
func (v *UDPNameServer) HandleResponse(dest v2net.Destination, payload *buf.Buffer)
Private: Visible for testing.
func (*UDPNameServer) QueryA ¶
func (v *UDPNameServer) QueryA(domain string) <-chan *ARecord
Click to show internal directories.
Click to hide internal directories.