shunt

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DOMAIN_MARK_KEY

type DOMAIN_MARK_KEY struct{}

type Dialer added in v0.3.5

type Dialer interface {
	Get(ctx context.Context, network string, str string, tag string) (netapi.Proxy, error)
}

type ForceModeKey

type ForceModeKey struct{}

type IP_MARK_KEY

type IP_MARK_KEY struct{}

func (IP_MARK_KEY) String

func (IP_MARK_KEY) String() string

type Resolver added in v0.3.5

type Resolver interface {
	Get(str string) netapi.Resolver
}

type Shunt

type Shunt struct {
	ProcessDumper netapi.ProcessDumper
	// contains filtered or unexported fields
}

func NewShunt

func NewShunt(d Dialer, r Resolver, ProcessDumper netapi.ProcessDumper) *Shunt

func (*Shunt) Close

func (f *Shunt) Close() error

func (*Shunt) Conn

func (s *Shunt) Conn(ctx context.Context, host netapi.Address) (net.Conn, error)

func (*Shunt) Dispatch

func (s *Shunt) Dispatch(ctx context.Context, host netapi.Address) (netapi.Address, error)

func (*Shunt) DumpProcess added in v0.3.5

func (c *Shunt) DumpProcess(ctx context.Context, addr netapi.Address) (s string)

func (*Shunt) LookupIP

func (f *Shunt) LookupIP(ctx context.Context, domain string, opts ...func(*netapi.LookupIPOption)) ([]net.IP, error)

func (*Shunt) PacketConn

func (s *Shunt) PacketConn(ctx context.Context, host netapi.Address) (net.PacketConn, error)

func (*Shunt) Raw

func (*Shunt) Resolver

func (s *Shunt) Resolver(ctx context.Context, domain string) netapi.Resolver

func (*Shunt) Search added in v0.3.5

func (s *Shunt) Search(ctx context.Context, addr netapi.Address) bypass.ModeEnum

func (*Shunt) Tags

func (s *Shunt) Tags() []string

func (*Shunt) Update

func (s *Shunt) Update(c *pc.Setting)

Jump to

Keyboard shortcuts

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