Versions in this module Expand all Collapse all v0 v0.0.1 Jul 27, 2022 Changes in this version + const DiscoveryInterval + const DiscoveryServiceTag + const LISTEN_ADDRESS_STRINGS + func CidB32(t testing.TB, b58CID string) string + func CreatePeerKey(key string) (string, error) + func GetPrivateKey(key string) (string, error) + func GetPublicKey(key string) (string, error) + func MustBytesFromHex(t testing.TB, s string) []byte + func MustCID(t testing.TB, s string) cid.Cid + func NewIdentityDataStore(t testing.TB) ds.Datastore + type Discovery interface + Create func(host string) (host.Host, error) + SetupDiscovery func(host host.Host) error + type DiscoveryFactory struct + func NewDiscoveryFactory() *DiscoveryFactory + func (d *DiscoveryFactory) Create(host string) (host.Host, error) + func (d *DiscoveryFactory) GetLocalPeerId() peer.ID + func (d *DiscoveryFactory) SetLocalPeerId(id peer.ID) + func (d *DiscoveryFactory) SetupDiscovery(h host.Host) error + type PeeringService struct + func NewPeeringService(host host.Host) *PeeringService + func (ps *PeeringService) AddPeer(info peer.AddrInfo) + func (ps *PeeringService) GetState() State + func (ps *PeeringService) ListPeers() []peer.AddrInfo + func (ps *PeeringService) RemovePeer(id peer.ID) + func (ps *PeeringService) Start() error + func (ps *PeeringService) Stop() error + type State uint + const StateInit + const StateRunning + const StateStopped + func (s State) String() string