server

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Protocol

type Protocol string

type RouteMux

type RouteMux struct {
	Routes []config.Route
}

func NewRouteMux

func NewRouteMux() *RouteMux

func (RouteMux) ServeHTTP

func (r RouteMux) ServeHTTP(resp http.ResponseWriter, req *http.Request)

type Socks5Server

type Socks5Server struct {
	DialFunc func(metadata *codec.Metadata) (net.Conn, error)
}

func (*Socks5Server) ListenAndServe

func (s *Socks5Server) ListenAndServe(network, addr string) error

func (*Socks5Server) ServeConn

func (s *Socks5Server) ServeConn(conn net.Conn) (err error)

type TLSServer

type TLSServer struct {
	Cert    string
	Key     string
	Handler http.Handler
}

TLSServer struct

func (*TLSServer) ListenAndServe

func (s *TLSServer) ListenAndServe(addr string) error

func (*TLSServer) ListenAndServeTLS

func (s *TLSServer) ListenAndServeTLS(addr string) error

func (*TLSServer) Server

func (s *TLSServer) Server(ln net.Listener) error

Jump to

Keyboard shortcuts

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