proxy

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2025 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrGenerated = errors.New("generated tunnel config; fill it with the desired route and restart")

Functions

This section is empty.

Types

type Proxy

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

func StartProxy

func StartProxy(addr string, verbosity int, res chan<- State, versionAndDevice string, blockHttp bool, netConfigPath, tunnelConfigPath string) (*Proxy, error)

func StartProxyWithConfig

func StartProxyWithConfig(addr string, verbosity int, res chan<- State, blockHttp bool, versionAndDevice string, lsCfg *liteclient.GlobalConfig, tunnelConfigPath string) (*Proxy, error)

func (*Proxy) Stop

func (p *Proxy) Stop()

type State

type State struct {
	Type    string
	State   string
	Stopped bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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