resolved

package
v1.12.4-ios Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2025 License: GPL-2.0 Imports: 39 Imported by: 0

Documentation

Index

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 RegisterService

func RegisterService(registry *boxService.Registry)

func RegisterTransport

func RegisterTransport(registry *dns.TransportRegistry)

Types

type Address

type Address struct {
	IfIndex int32
	Family  int32
	Address []byte
}

type LinkDNS

type LinkDNS struct {
	Family  int32
	Address []byte
}

type LinkDNSEx

type LinkDNSEx struct {
	Family  int32
	Address []byte
	Port    uint16
	Name    string
}

type LinkDomain

type LinkDomain struct {
	Domain      string
	RoutingOnly bool
}

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 Name

type Name struct {
	IfIndex  int32
	Hostname string
}

type ResourceRecord

type ResourceRecord struct {
	IfIndex int32
	Type    uint16
	Class   uint16
	Data    []byte
}

type SRVRecord

type SRVRecord struct {
	Priority  uint16
	Weight    uint16
	Port      uint16
	Hostname  string
	Addresses []Address
	CNAME     string
}

type Service

type Service struct {
	boxService.Adapter
	// contains filtered or unexported fields
}

func (*Service) Close

func (i *Service) Close() error

func (*Service) NewConnectionEx

func (i *Service) NewConnectionEx(ctx context.Context, conn net.Conn, metadata adapter.InboundContext, onClose N.CloseHandlerFunc)

func (*Service) NewPacketEx

func (i *Service) NewPacketEx(buffer *buf.Buffer, oob []byte, source M.Socksaddr)

func (*Service) Start

func (i *Service) Start(stage adapter.StartStage) error

type TXTRecord

type TXTRecord []byte

type Transport

type Transport struct {
	dns.TransportAdapter
	// contains filtered or unexported fields
}

func (*Transport) Close

func (t *Transport) Close() error

func (*Transport) Exchange

func (t *Transport) Exchange(ctx context.Context, message *mDNS.Msg) (*mDNS.Msg, error)

func (*Transport) Start

func (t *Transport) Start(stage adapter.StartStage) error
type TransportLink struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL