Versions in this module Expand all Collapse all v0 v0.29.4 Aug 12, 2023 Changes in this version + func NewAddrBook() *memoryAddrBook + func NewKeyBook() *memoryKeyBook + func NewPeerMetadata() *memoryPeerMetadata + func NewPeerstore(opts ...Option) (ps *pstoremem, err error) + func NewProtoBook(opts ...ProtoBookOption) (*memoryProtoBook, error) + type AddrBookOption func(book *memoryAddrBook) error + func WithClock(clock clock) AddrBookOption + type AddrSubManager struct + func NewAddrSubManager() *AddrSubManager + func (mgr *AddrSubManager) AddrStream(ctx context.Context, p peer.ID, initial []ma.Multiaddr) <-chan ma.Multiaddr + func (mgr *AddrSubManager) BroadcastAddr(p peer.ID, addr ma.Multiaddr) + type Option interface + type ProtoBookOption func(book *memoryProtoBook) error + func WithMaxProtocols(num int) ProtoBookOption