tunnel

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const FingerPrintHeader = "X-Backend-ID"

since it's intended to be an http header, case doesn't matter

View Source
const KeepaliveInterval = 6 * time.Second

Variables

This section is empty.

Functions

This section is empty.

Types

type Tunnel

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

func NewTunnel

func NewTunnel() *Tunnel

func (*Tunnel) Accept

func (t *Tunnel) Accept() (net.Conn, error)

func (*Tunnel) Addr

func (t *Tunnel) Addr() net.Addr

func (*Tunnel) Close

func (t *Tunnel) Close() error

func (*Tunnel) Network

func (t *Tunnel) Network() string

func (*Tunnel) Push

func (t *Tunnel) Push(conn net.Conn)

func (*Tunnel) ServeHTTP

func (t *Tunnel) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*Tunnel) String

func (t *Tunnel) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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