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)
Click to show internal directories.
Click to hide internal directories.