proxy

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2019 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QUIC netType = iota
	KCP
	TCP
)

Variables

This section is empty.

Functions

func StartClient

func StartClient(netType, server, cipher, password, listenIP string)

func StartHttpProxy added in v0.1.9

func StartHttpProxy(netType, server, cipher, password, addr string)

func StartServer

func StartServer(netType, port, cipher, password string)

Types

type Client added in v0.1.6

type Client interface {
	Dial(server string) (net.Conn, error)
}

func NewClient added in v0.1.9

func NewClient(netType string) Client

type Server added in v0.1.6

type Server interface {
	Listen(port string) (<-chan net.Conn, error)
}

func NewServer added in v0.1.9

func NewServer(netType string) Server

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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