Documentation
¶
Overview ¶
Package infomempeerstore wraps pstoremem.NewPeerstore() providing an extra methods to examine the internal peer state: GetPeerData()
Index ¶
- type PeerData
- type PeerStore
- func (ps *PeerStore) AddProtocols(p peer.ID, protos ...protocol.ID) error
- func (ps *PeerStore) ConsumePeerRecord(s *record.Envelope, ttl time.Duration) (accepted bool, err error)
- func (ps *PeerStore) GetPeerData(p peer.ID) PeerData
- func (ps *PeerStore) GetPeerRecord(p peer.ID) *record.Envelope
- func (ps *PeerStore) Put(p peer.ID, key string, val interface{}) error
- func (ps *PeerStore) RemovePeer(p peer.ID)
- func (ps *PeerStore) RemoveProtocols(p peer.ID, protos ...protocol.ID) error
- func (ps *PeerStore) SetProtocols(p peer.ID, protos ...protocol.ID) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PeerStore ¶
func (*PeerStore) AddProtocols ¶
func (*PeerStore) ConsumePeerRecord ¶
func (*PeerStore) RemovePeer ¶
func (*PeerStore) RemoveProtocols ¶
Click to show internal directories.
Click to hide internal directories.