Versions in this module Expand all Collapse all v0 v0.0.2 Apr 6, 2021 Changes in this version + type AddrsFactory = bhost.AddrsFactory + type AutoNATConfig struct + EnableService bool + ForceReachability *network.Reachability + ThrottleGlobalLimit int + ThrottleInterval time.Duration + ThrottlePeerLimit int + type Config struct + AddrsFactory bhost.AddrsFactory + ConnManager connmgr.ConnManager + ConnectionGater connmgr.ConnectionGater + DisablePing bool + EnableAutoRelay bool + Insecure bool + ListenAddrs []ma.Multiaddr + Muxers []MsMuxC + NATManager NATManagerC + PSK pnet.PSK + PeerKey crypto.PrivKey + Peerstore peerstore.Peerstore + Relay bool + RelayCustom bool + RelayOpts []circuit.RelayOpt + Reporter metrics.Reporter + Routing RoutingC + SecurityTransports []MsSecC + StaticRelays []peer.AddrInfo + Transports []TptC + UserAgent string + func (cfg *Config) Apply(opts ...Option) error + func (cfg *Config) NewNode(ctx context.Context) (host.Host, error) + type MsMuxC struct + ID string + type MsSecC struct + ID string + type MuxC func(h host.Host) (mux.Multiplexer, error) + func MuxerConstructor(m interface{}) (MuxC, error) + type NATManagerC func(network.Network) bhost.NATManager + type Option func(cfg *Config) error + type RoutingC func(host.Host) (routing.PeerRouting, error) + type SecC func(h host.Host) (sec.SecureTransport, error) + func SecurityConstructor(security interface{}) (SecC, error) + type TptC func(h host.Host, u *tptu.Upgrader, cg connmgr.ConnectionGater) (transport.Transport, error) + func TransportConstructor(tpt interface{}) (TptC, error)