Documentation ¶
Index ¶
- type PeerCache
- func (m *PeerCache) Get(k crypto.PublicKey) (*hyperspace.Announcement, error)
- func (m *PeerCache) List() []*hyperspace.Announcement
- func (m *PeerCache) Lookup(q hyperspace.Bloom) []*hyperspace.Announcement
- func (m *PeerCache) Put(p *hyperspace.Announcement, ttl time.Duration) (updated bool)
- func (m *PeerCache) Remove(k crypto.PublicKey)
- func (m *PeerCache) Touch(k crypto.PublicKey, ttl time.Duration)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PeerCache ¶
type PeerCache struct {
// contains filtered or unexported fields
}
func (*PeerCache) Get ¶
func (m *PeerCache) Get(k crypto.PublicKey) (*hyperspace.Announcement, error)
Get -
func (*PeerCache) Lookup ¶
func (m *PeerCache) Lookup(q hyperspace.Bloom) []*hyperspace.Announcement
Lookup -
func (*PeerCache) Put ¶
func (m *PeerCache) Put( p *hyperspace.Announcement, ttl time.Duration, ) (updated bool)
Put -
Click to show internal directories.
Click to hide internal directories.