Documentation ¶
Index ¶
- Constants
- func SetGrowStrategy(gs GrowStrategy)
- func SetReindexStrategy(rs ReindexStrategy)
- type Backing
- type BackingData
- type Evaluable
- type Gonk
- func (g *Gonk[dataType]) AtomicMutate(target dataType, mf func(item *dataType), insertIfNotFound bool)
- func (g *Gonk[dataType]) BulkLoad(items []dataType)
- func (g *Gonk[dataType]) Delete(item dataType) bool
- func (g *Gonk[dataType]) Init(preloadSize int)
- func (g *Gonk[dataType]) Len() int
- func (g *Gonk[dataType]) Load(target dataType) (dataType, bool)
- func (g *Gonk[dataType]) Optimize(requiredModification sizeModifierFlag)
- func (g *Gonk[dataType]) PreciseLen() int
- func (g *Gonk[dataType]) Range(af func(item dataType) bool)
- func (g *Gonk[dataType]) Store(target dataType)
- type GrowStrategy
- type ReindexStrategy
Constants ¶
View Source
const ( Grow sizeModifierFlag = iota Same Minimize )
Variables ¶
This section is empty.
Functions ¶
func SetGrowStrategy ¶
func SetGrowStrategy(gs GrowStrategy)
func SetReindexStrategy ¶
func SetReindexStrategy(rs ReindexStrategy)
Types ¶
type Backing ¶
type Backing[dataType Evaluable[dataType]] struct { // contains filtered or unexported fields }
type BackingData ¶
type BackingData[dataType Evaluable[dataType]] struct { // contains filtered or unexported fields }
type Gonk ¶
type Gonk[dataType Evaluable[dataType]] struct { // contains filtered or unexported fields }
func (*Gonk[dataType]) AtomicMutate ¶
func (*Gonk[dataType]) Optimize ¶
func (g *Gonk[dataType]) Optimize(requiredModification sizeModifierFlag)
func (*Gonk[dataType]) PreciseLen ¶
type GrowStrategy ¶
type GrowStrategy uint8
const ( Double GrowStrategy = iota Half HalfMax2048 OneAtATime FourItems )
Click to show internal directories.
Click to hide internal directories.