handler

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const BufferSize = 256 * 1024

BufferSize for coybuffer and websocket

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

Handler handlers

func New

func New(
	handshakeTimeout time.Duration,
	dialTimeout time.Duration,
	writeTimeout time.Duration,
	enableCompression bool,
	mp *mapping.Mapping,
	pk *publickey.Publickey,
	dumpTCP uint,
	logger *zap.Logger) (*Handler, error)

New new handler

func (*Handler) Hello

func (h *Handler) Hello() func(w http.ResponseWriter, r *http.Request)

Hello hello handler

func (*Handler) Proxy

func (h *Handler) Proxy(wg *sync.WaitGroup) func(w http.ResponseWriter, r *http.Request)

Proxy proxy handler

Jump to

Keyboard shortcuts

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