Versions in this module Expand all Collapse all v0 v0.16.2 Dec 14, 2023 v0.16.1 Dec 14, 2023 Changes in this version + type Allocator struct + func NewAllocator(maxAllowedAllocatedTotal uint64, maxAllowedAllocatedPerPeer uint64) *Allocator + func (a *Allocator) AllocateBlockMemory(p peer.ID, amount uint64) <-chan error + func (a *Allocator) AllocatedForPeer(p peer.ID) uint64 + func (a *Allocator) ReleaseBlockMemory(p peer.ID, amount uint64) error + func (a *Allocator) ReleasePeerMemory(p peer.ID) error + func (a *Allocator) Stats() graphsync.ResponseStats