tunnel

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Server      string
	Tunnel      *TunnelProps
	ForwardPort uint16
}

func (*Client) Connect

func (client *Client) Connect()

type Flag added in v0.4.1

type Flag uint8
const (
	FlagHello Flag = iota + 1
	FlagProxy
	FlagReady
	FlagError
)

func (Flag) String added in v0.4.1

func (f Flag) String() string

type Server

type Server struct {
	Port uint16 // tunnel service port
	// contains filtered or unexported fields
}

func (*Server) Serve

func (s *Server) Serve() (err error)

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Tunnel

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

func (*Tunnel) ListenAndServe

func (t *Tunnel) ListenAndServe() (err error)

type TunnelProps added in v0.4.4

type TunnelProps struct {
	Name             string
	Port             uint16
	MaxProxyLifetime uint32
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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