Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoadBalance ¶
type LoadBalance[K comparable, V any] interface { Size() int32 Append(node ...Node[K, V]) Remove(key K) bool Next() (V, error) }
func NewRandom ¶
func NewRandom[K comparable, V any]() LoadBalance[K, V]
func NewRoundRobin ¶
func NewRoundRobin[K comparable, V any]() LoadBalance[K, V]
type Node ¶
type Node[K comparable, V any] interface { Key() K Value() V }
Click to show internal directories.
Click to hide internal directories.