context

package
v1.11.13 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

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() net.Conn

Conn implement C.ConnContext Conn

func (*ConnContext) ID

func (c *ConnContext) ID() uuid.UUID

ID implement C.ConnContext ID

func (*ConnContext) Metadata

func (c *ConnContext) Metadata() *C.Metadata

Metadata implement C.ConnContext Metadata

type DNSContext

type DNSContext struct {
	// contains filtered or unexported fields
}

func NewDNSContext

func NewDNSContext(msg *dns.Msg) *DNSContext

func (*DNSContext) ID

func (c *DNSContext) ID() uuid.UUID

ID implement C.PlainContext ID

func (*DNSContext) SetType

func (c *DNSContext) SetType(tp string)

SetType set type of response

func (*DNSContext) Type

func (c *DNSContext) Type() string

Type return type of response

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

Jump to

Keyboard shortcuts

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