Versions in this module Expand all Collapse all v0 v0.23.5 Nov 8, 2022 Changes in this version + func NewAddrBook(ctx context.Context, store ds.Batching, opts Options) (ab *dsAddrBook, err error) + func NewKeyBook(_ context.Context, store ds.Datastore, _ Options) (*dsKeyBook, error) + func NewPeerMetadata(_ context.Context, store ds.Datastore, _ Options) (*dsPeerMetadata, error) + func NewPeerstore(ctx context.Context, store ds.Batching, opts Options) (*pstoreds, error) + func NewProtoBook(meta pstore.PeerMetadata, opts ...ProtoBookOption) (*dsProtoBook, error) + type Options struct + CacheSize uint + Clock clock + GCInitialDelay time.Duration + GCLookaheadInterval time.Duration + GCPurgeInterval time.Duration + MaxProtocols int + func DefaultOpts() Options + type ProtoBookOption func(*dsProtoBook) error + func WithMaxProtocols(num int) ProtoBookOption