tunnel

package
v0.0.0-...-214c663 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 11 Imported by: 4

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

func (l *Log) Type() string

type LogLevel

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

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

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

func (*Tunnel) Log

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

func (*Tunnel) Traffic

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