server

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2018 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ListenAddr   string
	Pattern      string
	TLS          bool
	CertPath     string
	KeyPath      string
	ReverseProxy string
}

func (*Config) GetServer

func (config *Config) GetServer() (server *WebSocksServer)

type WebSocksServer

type WebSocksServer struct {
	*Config
	LogLevel loggo.Level

	Upgrader *websocket.Upgrader

	CreatedAt time.Time
	Stats     *core.Stats
	// contains filtered or unexported fields
}

func (*WebSocksServer) DialRemote

func (server *WebSocksServer) DialRemote(host string) (conn net.Conn, err error)

func (*WebSocksServer) HandleWebSocket

func (server *WebSocksServer) HandleWebSocket(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

func (*WebSocksServer) Run

func (server *WebSocksServer) Run() (err error)

Jump to

Keyboard shortcuts

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