Documentation ¶
Overview ¶
package wantlist implements an object for bitswap that contains the keys that a given peer wants.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ThreadSafe ¶
type ThreadSafe struct { Wantlist Wantlist // contains filtered or unexported fields }
func NewThreadSafe ¶
func NewThreadSafe() *ThreadSafe
func (*ThreadSafe) Entries ¶
func (w *ThreadSafe) Entries() []Entry
func (*ThreadSafe) Len ¶
func (w *ThreadSafe) Len() int
func (*ThreadSafe) Remove ¶
func (w *ThreadSafe) Remove(k key.Key)
func (*ThreadSafe) SortedEntries ¶
func (w *ThreadSafe) SortedEntries() []Entry
type Wantlist ¶
type Wantlist struct {
// contains filtered or unexported fields
}
not threadsafe
func (*Wantlist) SortedEntries ¶
Click to show internal directories.
Click to hide internal directories.