Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionType ¶
type ActionType string
const ( StartType ActionType = "Start" StopType ActionType = "Stop" RestartType ActionType = "Restart" SkipType ActionType = "Skip" )
func JudgeAction ¶ added in v0.4.3
func JudgeAction(curr, spec bool) ActionType
type Option ¶
type Option struct {
// contains filtered or unexported fields
}
func NewEngineOption ¶
func NewEngineOption() *Option
func (*Option) GetProxyStatus ¶
func (*Option) GetTunnelStatus ¶
func (*Option) SetProxyStatus ¶
func (*Option) SetTunnelStatus ¶
type ProxyContext ¶
type ProxyEngine ¶
type ProxyEngine struct {
// contains filtered or unexported fields
}
func (*ProxyEngine) Handler ¶ added in v0.4.3
func (p *ProxyEngine) Handler() error
func (*ProxyEngine) Status ¶ added in v0.4.3
func (p *ProxyEngine) Status() bool
type TunnelEngine ¶
type TunnelEngine struct {
// contains filtered or unexported fields
}
func (*TunnelEngine) CleanupDriver ¶ added in v0.4.3
func (c *TunnelEngine) CleanupDriver()
func (*TunnelEngine) Handler ¶ added in v0.4.3
func (c *TunnelEngine) Handler() error
sync syncs full state according to the gateway list.
func (*TunnelEngine) InitDriver ¶ added in v0.4.3
func (c *TunnelEngine) InitDriver() error
func (*TunnelEngine) Status ¶ added in v0.4.3
func (c *TunnelEngine) Status() bool
Click to show internal directories.
Click to hide internal directories.