Documentation ¶
Index ¶
- type DOMAIN_MARK_KEY
- type ForceModeKey
- type IP_MARK_KEY
- type Opts
- type Shunt
- func (f *Shunt) Close() error
- func (s *Shunt) Conn(ctx context.Context, host netapi.Address) (net.Conn, error)
- func (s *Shunt) Dispatch(ctx context.Context, host netapi.Address) (netapi.Address, error)
- func (f *Shunt) LookupIP(ctx context.Context, domain string) ([]net.IP, error)
- func (s *Shunt) PacketConn(ctx context.Context, host netapi.Address) (net.PacketConn, error)
- func (f *Shunt) Raw(ctx context.Context, req dnsmessage.Question) (dnsmessage.Message, error)
- func (s *Shunt) Resolver(ctx context.Context, domain string) netapi.Resolver
- func (s *Shunt) SearchWithDefault(ctx context.Context, addr netapi.Address, defaultT bypass.ModeEnum) bypass.ModeEnum
- func (s *Shunt) Tags() []string
- func (s *Shunt) Update(c *pc.Setting)
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 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 Shunt ¶
type Shunt struct { Opts // contains filtered or unexported fields }
func (*Shunt) PacketConn ¶
func (*Shunt) Raw ¶
func (f *Shunt) Raw(ctx context.Context, req dnsmessage.Question) (dnsmessage.Message, error)
func (*Shunt) SearchWithDefault ¶
Click to show internal directories.
Click to hide internal directories.