Documentation
¶
Index ¶
- type SessionInterestManager
- func (sim *SessionInterestManager) FilterSessionInterested(ses uint64, ksets ...[]cid.Cid) [][]cid.Cid
- func (sim *SessionInterestManager) InterestedSessions(blks []cid.Cid, haves []cid.Cid, dontHaves []cid.Cid) []uint64
- func (sim *SessionInterestManager) RecordSessionInterest(ses uint64, ks []cid.Cid)
- func (sim *SessionInterestManager) RemoveSessionInterest(ses uint64) []cid.Cid
- func (sim *SessionInterestManager) RemoveSessionWants(ses uint64, wants []cid.Cid)
- func (sim *SessionInterestManager) SplitWantedUnwanted(blks []blocks.Block) ([]blocks.Block, []blocks.Block)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SessionInterestManager ¶
type SessionInterestManager struct {
// contains filtered or unexported fields
}
func (*SessionInterestManager) FilterSessionInterested ¶
func (*SessionInterestManager) InterestedSessions ¶
func (*SessionInterestManager) RecordSessionInterest ¶
func (sim *SessionInterestManager) RecordSessionInterest(ses uint64, ks []cid.Cid)
func (*SessionInterestManager) RemoveSessionInterest ¶
func (sim *SessionInterestManager) RemoveSessionInterest(ses uint64) []cid.Cid
func (*SessionInterestManager) RemoveSessionWants ¶
func (sim *SessionInterestManager) RemoveSessionWants(ses uint64, wants []cid.Cid)
func (*SessionInterestManager) SplitWantedUnwanted ¶
Click to show internal directories.
Click to hide internal directories.