Versions in this module Expand all Collapse all v0 v0.23.5 Nov 8, 2022 Changes in this version + const ConnectTimeout + const HandshakeTimeout + const ProtoID + const ServiceName + const StreamTimeout + func CanHop(ctx context.Context, host host.Host, id peer.ID) (bool, error) + type ACLFilter interface + AllowHop func(src, dest peer.ID) bool + type Option func(r *Relay) error + func WithACL(acl ACLFilter) Option + func WithResources(rc Resources) Option + type Relay struct + func NewRelay(h host.Host, opts ...Option) (*Relay, error) + func (r *Relay) Close() error + type Resources struct + BufferSize int + MaxCircuits int + MaxCircuitsPerPeer int + func DefaultResources() Resources