Documentation ¶
Index ¶
Constants ¶
View Source
const ( DNSTypeHost = "host" DNSTypeFakeIP = "fakeip" 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 *C.Metadata) *ConnContext
func (*ConnContext) Conn ¶
func (c *ConnContext) Conn() *N.BufferedConn
Conn implement C.ConnContext Conn
func (*ConnContext) Metadata ¶
func (c *ConnContext) Metadata() *C.Metadata
Metadata implement C.ConnContext Metadata
type DNSContext ¶
func NewDNSContext ¶
func NewDNSContext(ctx context.Context, msg *dns.Msg) *DNSContext
type PacketConnContext ¶
type PacketConnContext struct {
// contains filtered or unexported fields
}
func NewPacketConnContext ¶
func NewPacketConnContext(metadata *C.Metadata) *PacketConnContext
func (*PacketConnContext) ID ¶
func (pc *PacketConnContext) ID() uuid.UUID
ID implement C.PacketConnContext ID
func (*PacketConnContext) InjectPacketConn ¶
func (pc *PacketConnContext) InjectPacketConn(pconn C.PacketConn)
InjectPacketConn injectPacketConn manually
func (*PacketConnContext) Metadata ¶
func (pc *PacketConnContext) Metadata() *C.Metadata
Metadata implement C.PacketConnContext Metadata
func (*PacketConnContext) PacketConn ¶
func (pc *PacketConnContext) PacketConn() net.PacketConn
PacketConn implement C.PacketConnContext PacketConn
Click to show internal directories.
Click to hide internal directories.