tunnel

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

type Log struct {
	LogLevel LogLevel
	Payload  string
}

func (*Log) Type added in v0.4.0

func (l *Log) Type() string

type LogLevel added in v0.5.0

type LogLevel int
const (
	ERROR LogLevel = iota
	WARNING
	INFO
	DEBUG
)

type Mode added in v0.5.0

type Mode int
const (
	Global Mode = iota
	Rule
	Direct
)

func (Mode) String added in v0.5.0

func (m Mode) String() string

type Tunnel

type Tunnel struct {
	// contains filtered or unexported fields
}

func GetInstance

func GetInstance() *Tunnel

func (*Tunnel) Add

func (t *Tunnel) Add(req C.ServerAdapter)

func (*Tunnel) Config added in v0.5.0

func (t *Tunnel) Config() ([]C.Rule, map[string]C.Proxy)

func (*Tunnel) GetMode added in v0.5.0

func (t *Tunnel) GetMode() Mode

func (*Tunnel) Log added in v0.4.0

func (t *Tunnel) Log() *observable.Observable

func (*Tunnel) SetMode added in v0.5.0

func (t *Tunnel) SetMode(mode Mode)

func (*Tunnel) Traffic added in v0.4.0

func (t *Tunnel) Traffic() *C.Traffic

func (*Tunnel) UpdateConfig

func (t *Tunnel) UpdateConfig() (err error)

Jump to

Keyboard shortcuts

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