Documentation ¶ Index ¶ Constants Variables type Addr func New(relay netip.AddrPort, id ID) *Addr func Resolve(addr string) (*Addr, error) func (a *Addr) ID() ID func (a *Addr) Network() string func (a *Addr) Relay() netip.AddrPort func (a *Addr) String() string type ID func ParseID(id string) (ID, error) func (id ID) Encode() []byte func (id ID) String() string func (id ID) Valid() bool Constants ¶ View Source const MaxIDLength = 250 Variables ¶ View Source var ErrInvalidAddr = errors.New("forwarder: invalid addr") Functions ¶ This section is empty. Types ¶ type Addr ¶ type Addr struct { // contains filtered or unexported fields } func New ¶ func New(relay netip.AddrPort, id ID) *Addr func Resolve ¶ func Resolve(addr string) (*Addr, error) func (*Addr) ID ¶ func (a *Addr) ID() ID func (*Addr) Network ¶ func (a *Addr) Network() string func (*Addr) Relay ¶ func (a *Addr) Relay() netip.AddrPort func (*Addr) String ¶ func (a *Addr) String() string type ID ¶ type ID []byte func ParseID ¶ func ParseID(id string) (ID, error) func (ID) Encode ¶ func (id ID) Encode() []byte func (ID) String ¶ func (id ID) String() string func (ID) Valid ¶ func (id ID) Valid() bool Source Files ¶ View all Source files addr.go id.go Click to show internal directories. Click to hide internal directories.