client

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Log    logger.Config `json:"log,omitempty"`
	Client []WspcConfig  `json:"client,omitempty"`
}

type DynamicProxy added in v0.3.1

type DynamicProxy interface {
	// Listen local
	Listen()

	// ServeConn conn by wspc
	ServeConn(conn net.Conn) error
}

type HTTPProxy added in v0.3.1

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

HTTPProxy implement DynamicProxy

func (*HTTPProxy) Listen added in v0.3.1

func (p *HTTPProxy) Listen()

func (*HTTPProxy) ServeConn added in v0.3.1

func (p *HTTPProxy) ServeConn(local net.Conn) error

type Socks5Proxy added in v0.3.1

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

Socks5Proxy implement DynamicProxy

func (*Socks5Proxy) Listen added in v0.3.1

func (p *Socks5Proxy) Listen()

func (*Socks5Proxy) ServeConn added in v0.3.1

func (p *Socks5Proxy) ServeConn(conn net.Conn) error

type Wspc

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

func New added in v0.4.1

func New(config WspcConfig) *Wspc

func (*Wspc) DynamicForward added in v0.2.0

func (c *Wspc) DynamicForward()

func (*Wspc) ListenAndServe

func (c *Wspc) ListenAndServe()

func (*Wspc) ListenDynamic added in v0.2.0

func (c *Wspc) ListenDynamic(conf *msg.WspConfig)

func (*Wspc) ListenLocal added in v0.2.0

func (c *Wspc) ListenLocal(conf *msg.WspConfig)

func (*Wspc) LoadConfig added in v0.4.1

func (c *Wspc) LoadConfig(channel string) (*msg.WspConfig, error)

func (*Wspc) LocalForward added in v0.2.0

func (c *Wspc) LocalForward()

func (*Wspc) NewConn

func (c *Wspc) NewConn(data *msg.Data, req *msg.WspRequest) error

func (*Wspc) NewLocalConn

func (c *Wspc) NewLocalConn(local net.Conn, config *msg.WspConfig)

type WspcConfig added in v0.5.0

type WspcConfig struct {
	Auth    string   `json:"auth,omitempty"`
	Server  string   `json:"server,omitempty"`
	Local   sliceArg `json:"local,omitempty"`
	Remote  sliceArg `json:"remote,omitempty"`
	Dynamic sliceArg `json:"dynamic,omitempty"`
}

Jump to

Keyboard shortcuts

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