Versions in this module Expand all Collapse all v0 v0.11.2 Sep 15, 2026 v0.11.1 Sep 15, 2026 v0.11.0 Sep 15, 2026 v0.10.1 Sep 14, 2026 v0.10.0 Sep 14, 2026 v0.9.3 Sep 14, 2026 v0.9.2 Sep 14, 2026 Changes in this version + type Buffer struct + func NewBuffer[T any](capacity int) *Buffer[T] + func (b *Buffer[T]) Push(item T) + func (b *Buffer[T]) Snapshot() []T v0.9.1 Sep 14, 2026 v0.9.0 Sep 14, 2026 v0.8.0 Sep 14, 2026 Changes in this version + type Ring struct + func New(capacity int) *Ring + func (r *Ring) BatchDrain(dst []Slot) int + func (r *Ring) Cap() int + func (r *Ring) Len() int + func (r *Ring) Pop(dst *Slot) bool + func (r *Ring) Push(s *Slot) bool + type Slot struct + A int64 + B int64 + ID [16]byte + Kind uint8 + Payload [8]byte + Seq uint64 + Status uint16 + Timestamp int64