Versions in this module Expand all Collapse all v0 v0.7.5 Aug 14, 2025 v0.0.3 Aug 14, 2025 Changes in this version + const MaxWeight + var ErrBadVersion = errors.New("bad version") + var ErrRouterID = errors.New("invalid router ID") + var ErrUnauthorized = errors.New("unauthorized") + var ErrUnknownCmd = errors.New("unknown command") + func LockWriter(w io.Writer) io.Writer + func NewHandler(opts ...handler.Option) handler.Handler + type Connector struct + func NewConnector(rid relay.TunnelID, cid relay.ConnectorID, host string, w io.Writer, ...) *Connector + func (c *Connector) Close() error + func (c *Connector) ID() relay.ConnectorID + func (c *Connector) Writer() io.Writer + type ConnectorOptions struct + type ConnectorPool struct + func NewConnectorPool(node string) *ConnectorPool + func (p *ConnectorPool) Add(rid relay.TunnelID, c *Connector) + func (p *ConnectorPool) Close() error + func (p *ConnectorPool) Del(rid relay.TunnelID, host string, cid relay.ConnectorID) + func (p *ConnectorPool) Get(rid relay.TunnelID, host string) *Connector + type Router struct + func NewRouter(node string, rid relay.TunnelID) *Router + func (r *Router) AddConnector(c *Connector) + func (r *Router) Close() error + func (r *Router) DelConnector(host string, cid relay.ConnectorID) + func (r *Router) GetConnector(host string) *Connector + func (r *Router) ID() relay.TunnelID