history

package
v1.0.27 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HistoryStore

type HistoryStore struct {
	// contains filtered or unexported fields
}

HistoryStore is a thread-safe collection of per-interface ring buffers.

func NewHistoryStore

func NewHistoryStore(capacity int) *HistoryStore

func (*HistoryStore) Record

func (hs *HistoryStore) Record(stats []types.CakeStats, interval time.Duration)

func (*HistoryStore) Snapshot

func (hs *HistoryStore) Snapshot() types.HistoryResponse

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL