Documentation ¶
Index ¶
- Variables
- type Mode
- type TrafficTrack
- type Tunnel
- func (t *Tunnel) Add(req C.ServerAdapter)
- func (t *Tunnel) Mode() Mode
- func (t *Tunnel) Proxies() map[string]C.Proxy
- func (t *Tunnel) Rules() []C.Rule
- func (t *Tunnel) SetMode(mode Mode)
- func (t *Tunnel) SetResolver(resolver *dns.Resolver)
- func (t *Tunnel) Traffic() *C.Traffic
- func (t *Tunnel) UpdateProxies(proxies map[string]C.Proxy)
- func (t *Tunnel) UpdateRules(rules []C.Rule)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Mode ¶ added in v0.5.0
type Mode int
func (Mode) MarshalJSON ¶ added in v0.10.0
MarshalJSON serialize Mode
func (*Mode) UnmarshalJSON ¶ added in v0.10.0
UnmarshalJSON unserialize Mode
func (*Mode) UnmarshalYAML ¶ added in v0.10.0
UnmarshalYAML unserialize Mode with yaml
type TrafficTrack ¶ added in v0.6.0
TrafficTrack record traffic of net.Conn
type Tunnel ¶
type Tunnel struct {
// contains filtered or unexported fields
}
Tunnel handle proxy socket and HTTP/SOCKS socket
func Instance ¶ added in v0.6.0
func Instance() *Tunnel
Instance return singleton instance of Tunnel
func (*Tunnel) SetResolver ¶ added in v0.10.0
SetResolver change the resolver of tunnel
func (*Tunnel) UpdateProxies ¶ added in v0.10.0
UpdateProxies handle update proxies
func (*Tunnel) UpdateRules ¶ added in v0.10.0
UpdateRules handle update rules
Click to show internal directories.
Click to hide internal directories.