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 Entry ¶
type Entry struct {
// TODO consider making entries immutable so they can be shared safely and
// slices can be copied efficiently.
Key u.Key
Priority int
}
type ThreadSafe ¶
type ThreadSafe struct {
Wantlist Wantlist
// contains filtered or unexported fields
}
func NewThreadSafe ¶
func NewThreadSafe() *ThreadSafe
func (*ThreadSafe) SortedEntries ¶
func (w *ThreadSafe) SortedEntries() []Entry
type Wantlist ¶
type Wantlist struct {
// contains filtered or unexported fields
}
not threadsafe
func (*Wantlist) SortedEntries ¶
func (w *Wantlist) SortedEntries() []Entry
Click to show internal directories.
Click to hide internal directories.