httptunnel

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RequestIDHeader = "X-Request-UID"
	RequestIDQuery  = "request_uid"
)
View Source
const RelayBufferSize = cipherstream.MaxCipherRelaySize

Variables

This section is empty.

Functions

func NewLocalConn

func NewLocalConn(client *req.Client, serverAddr, serverName string) (net.Conn, error)

Types

type LocalConn

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

func (*LocalConn) Pull added in v2.4.0

func (l *LocalConn) Pull()

func (*LocalConn) PullClose added in v2.4.0

func (l *LocalConn) PullClose()

func (*LocalConn) Push added in v2.4.0

func (l *LocalConn) Push()

func (*LocalConn) PushClose added in v2.4.0

func (l *LocalConn) PushClose()

func (*LocalConn) Read

func (l *LocalConn) Read(b []byte) (int, error)

Read implements io.Reader

type Server

type Server struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewServer

func NewServer(addr string, timeout time.Duration, tlsConfig *tls.Config) *Server

func (*Server) Accept

func (s *Server) Accept() (net.Conn, error)

func (*Server) Close

func (s *Server) Close() error

func (*Server) CloseConn

func (s *Server) CloseConn(reqID string)

func (*Server) Listen

func (s *Server) Listen()

Jump to

Keyboard shortcuts

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