Documentation ¶
Index ¶
Constants ¶
View Source
const ( DNSTypeHost = "host" DNSTypeRaw = "raw" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnContext ¶
type ConnContext struct {
// contains filtered or unexported fields
}
func NewConnContext ¶
func NewConnContext(conn net.Conn, metadata *constant.Metadata) *ConnContext
func (*ConnContext) Conn ¶
func (c *ConnContext) Conn() net.Conn
Conn implement constant.ConnContext Conn
func (*ConnContext) Metadata ¶
func (c *ConnContext) Metadata() *constant.Metadata
Metadata implement constant.ConnContext Metadata
type DNSContext ¶
type DNSContext struct {
// contains filtered or unexported fields
}
func NewDNSContext ¶
func NewDNSContext(msg *dns.Msg) *DNSContext
type PacketConnContext ¶
type PacketConnContext struct {
// contains filtered or unexported fields
}
func NewPacketConnContext ¶
func NewPacketConnContext(metadata *constant.Metadata) *PacketConnContext
func (*PacketConnContext) ID ¶
func (pc *PacketConnContext) ID() uuid.UUID
ID implement constant.PacketConnContext ID
func (*PacketConnContext) InjectPacketConn ¶
func (pc *PacketConnContext) InjectPacketConn(pconn constant.PacketConn)
InjectPacketConn manually
func (*PacketConnContext) Metadata ¶
func (pc *PacketConnContext) Metadata() *constant.Metadata
Metadata implement constant.PacketConnContext Metadata
func (*PacketConnContext) PacketConn ¶
func (pc *PacketConnContext) PacketConn() net.PacketConn
PacketConn implement constant.PacketConnContext PacketConn
Click to show internal directories.
Click to hide internal directories.