Documentation
¶
Index ¶
Constants ¶
View Source
const (
NotFound = `HTTP/1.1 404 Not Found
Content-Length: %d
Tunnel %s not found
`
)
Variables ¶
This section is empty.
Functions ¶
func NewTunnelClient ¶
func NewTunnelServerInstance ¶
Types ¶
type Conn ¶
type Conn struct {
// Peeked are the bytes that have been read from Conn for the
// purposes of route matching, but have not yet been consumed
// by Read calls. It set to nil by Read when fully consumed.
Peeked []byte
// Conn is the underlying connection.
// It can be type asserted against *net.TCPConn or other types
// as needed. It should not be read from directly unless
// Peeked is nil.
WriteCloser
}
type WriteCloser ¶
type WriteCloser interface {
net.Conn
// CloseWrite on a network connection, indicates that the issuer of the call
// has terminated sending on that connection.
// It corresponds to sending a FIN packet.
CloseWrite() error
}
WriteCloser describes a net.Conn with a CloseWrite method.
Click to show internal directories.
Click to hide internal directories.