proxy

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: May 8, 2020 License: GPL-3.0 Imports: 12 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProxy

func NewProxy(config *conf.GlobalConfig) (common.Runnable, error)

func ProxyConn added in v0.0.15

func ProxyConn(ctx context.Context, a, b io.ReadWriter, bufferSize int)

func ProxyPacket added in v0.0.15

func ProxyPacket(ctx context.Context, a, b protocol.PacketReadWriter)

func ProxyPacketWithRouter added in v0.0.17

func ProxyPacketWithRouter(ctx context.Context, from protocol.PacketReadWriter, table map[router.Policy]protocol.PacketReadWriter, router router.Router)

func RegisterAPI added in v0.4.4

func RegisterAPI(t conf.RunType, r APIRunner)

func RegisterProxy added in v0.0.15

func RegisterProxy(t conf.RunType, b Buildable)

func RunAPIService added in v0.4.4

func RunAPIService(t conf.RunType, ctx context.Context, config *conf.GlobalConfig, auth stat.Authenticator) error

Types

type APIRunner added in v0.4.4

type Buildable added in v0.0.15

type Buildable interface {
	Build(config *conf.GlobalConfig) (common.Runnable, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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