Versions in this module Expand all Collapse all v0 v0.6.0 Jun 14, 2024 Changes in this version + const IDMaxLimit + var ErrIDsExhausted = errors.New("no more IDs available") + type IDAllocator struct + func New(numIDs uint32) IDAllocator + func (a *IDAllocator) Allocate() (id uint32, err error) + func (a *IDAllocator) AllocateWithHash(hash [sha256.Size]byte) (id uint32, err error) + func (a *IDAllocator) Free(id uint32)