Documentation
¶
Overview ¶
Package portal provides the ability to build a 2-node HTTP tunnel
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Logf is for setting logging function Logf func(string, ...interface{}) )
Functions ¶
This section is empty.
Types ¶
type Framer ¶ added in v0.1.5
type Framer interface {
// Read reads a message from the connection
// The returned byte array is of the exact length of the message
Read() (b []byte, err error)
// Write writes the entire byte array as a message to the connection
Write(b []byte) error
// Close closes the connection
Close(err error) error
}
Framer is for reading and writing messages with boundaries (i.e. frame)
type Tunnel ¶ added in v1.1.0
type Tunnel struct {
// Create a connection on receiving proxy HTTP CONNECT from remote
ProxyConnect func(context.Context, string) (net.Conn, error)
// contains filtered or unexported fields
}
Tunnel is for building a tunnel connection between two nodes
Click to show internal directories.
Click to hide internal directories.