Documentation
¶
Index ¶
- func NewService(ctx context.Context, logger log.ContextLogger, tag string, ...) (adapter.Service, error)
- func NewTransport(ctx context.Context, logger log.ContextLogger, tag string, ...) (adapter.DNSTransport, error)
- func RegisterService(registry *boxService.Registry)
- func RegisterTransport(registry *dns.TransportRegistry)
- type Address
- type LinkDNS
- type LinkDNSEx
- type LinkDomain
- type LinkServers
- type Name
- type ResourceRecord
- type SRVRecord
- type Service
- type TXTRecord
- type Transport
- type TransportLink
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewService ¶
func NewService(ctx context.Context, logger log.ContextLogger, tag string, options option.ResolvedServiceOptions) (adapter.Service, error)
func NewTransport ¶
func NewTransport(ctx context.Context, logger log.ContextLogger, tag string, options option.ResolvedDNSServerOptions) (adapter.DNSTransport, error)
func RegisterService ¶
func RegisterService(registry *boxService.Registry)
func RegisterTransport ¶
func RegisterTransport(registry *dns.TransportRegistry)
Types ¶
type LinkDomain ¶
type LinkServers ¶
type LinkServers struct {
Link *TransportLink
Servers []adapter.DNSTransport
// contains filtered or unexported fields
}
func (*LinkServers) ServerOffset ¶
func (c *LinkServers) ServerOffset(rotate bool) uint32
type ResourceRecord ¶
type Service ¶
type Service struct {
boxService.Adapter
// contains filtered or unexported fields
}
func (*Service) NewConnectionEx ¶
func (i *Service) NewConnectionEx(ctx context.Context, conn net.Conn, metadata adapter.InboundContext, onClose N.CloseHandlerFunc)
func (*Service) NewPacketEx ¶
type Transport ¶
type Transport struct {
dns.TransportAdapter
// contains filtered or unexported fields
}
type TransportLink ¶
type TransportLink struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.