Documentation ¶
Index ¶
Constants ¶
View Source
const (
MaxWeight uint8 = 0xff
)
Variables ¶
View Source
var ( ErrBadVersion = errors.New("bad version") ErrUnknownCmd = errors.New("unknown command") ErrTunnelID = errors.New("invalid tunnel ID") ErrTunnelNotAvailable = errors.New("tunnel not available") ErrTunnelRoute = errors.New("no route to host") ErrPrivateTunnel = errors.New("private tunnel") )
Functions ¶
Types ¶
type Connector ¶
type Connector struct {
// contains filtered or unexported fields
}
func NewConnector ¶
func NewConnector(id relay.ConnectorID, tid relay.TunnelID, node string, s *mux.Session, opts *ConnectorOptions) *Connector
func (*Connector) ID ¶
func (c *Connector) ID() relay.ConnectorID
type ConnectorOptions ¶ added in v0.0.15
type ConnectorOptions struct {
// contains filtered or unexported fields
}
type ConnectorPool ¶
type ConnectorPool struct {
// contains filtered or unexported fields
}
func NewConnectorPool ¶
func NewConnectorPool(node string) *ConnectorPool
func (*ConnectorPool) Close ¶ added in v0.0.15
func (p *ConnectorPool) Close() error
type Tunnel ¶
type Tunnel struct {
// contains filtered or unexported fields
}
func (*Tunnel) AddConnector ¶
func (*Tunnel) CloseOnIdle ¶
func (*Tunnel) GetConnector ¶
Click to show internal directories.
Click to hide internal directories.