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) Traffic() *C.Traffic
- func (t *Tunnel) UpdateExperimental(ignoreResolveFail bool)
- 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 ¶
type Mode int
func (*Mode) UnmarshalJSON ¶
UnmarshalJSON unserialize Mode
func (*Mode) UnmarshalYAML ¶
UnmarshalYAML unserialize Mode with yaml
type TrafficTrack ¶
TrafficTrack record traffic of net.Conn
type Tunnel ¶
type Tunnel struct {
// contains filtered or unexported fields
}
Tunnel handle relay inbound proxy and outbound proxy
func (*Tunnel) UpdateExperimental ¶
UpdateExperimental handle update experimental config
func (*Tunnel) UpdateProxies ¶
UpdateProxies handle update proxies
func (*Tunnel) UpdateRules ¶
UpdateRules handle update rules
Click to show internal directories.
Click to hide internal directories.