Versions in this module Expand all Collapse all v0 v0.24.1 Oct 10, 2024 Changes in this version + type Entry struct + Cid cid.Cid + Priority int32 + WantType pb.Message_Wantlist_WantType + func NewRefEntry(c cid.Cid, p int32) Entry + type Wantlist struct + func New() *Wantlist + func (w *Wantlist) Absorb(other *Wantlist) + func (w *Wantlist) Add(c cid.Cid, priority int32, wantType pb.Message_Wantlist_WantType) bool + func (w *Wantlist) Contains(c cid.Cid) (Entry, bool) + func (w *Wantlist) Entries() []Entry + func (w *Wantlist) Len() int + func (w *Wantlist) Remove(c cid.Cid) bool + func (w *Wantlist) RemoveType(c cid.Cid, wantType pb.Message_Wantlist_WantType) bool