Documentation
¶
Overview ¶
Package session holds what kubeside observed while it was running.
kubeside writes nothing to disk, so retention did not disappear: it moved to RAM with a much smaller budget. That budget is enforced from the first release rather than discovered at 400MB on somebody's laptop.
Eviction is oldest-first and visible. A buffer that quietly drops the beginning of a session turns a gap into an apparent quiet period, which is the one failure this product cannot afford.
Index ¶
Constants ¶
const ( // DefaultMaxEntriesPerApp bounds one app's live history. DefaultMaxEntriesPerApp = 2000 // DefaultMaxBytesPerApp keeps one chatty app from spending the whole // budget before the global cap notices. DefaultMaxBytesPerApp = 4 << 20 // 4MB // DefaultMaxBytesTotal is the budget across every app. DefaultMaxBytesTotal = 100 << 20 // 100MB )
Defaults, from docs/05-architecture.md.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Limits ¶
Limits configure the buffers. Zero values take the defaults, so a caller cannot accidentally opt out of the cap.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store holds one buffer per app, under a global byte budget.
func (*Store) Bytes ¶
Bytes is the total held across every app, which is what the global budget bounds.
func (*Store) Horizon ¶
Horizon says where this app's live history begins, and why it begins there.
Two different facts, two different sentences: eviction is a cut in something that was known, and a session start is simply the moment kubeside began watching. Rendering either as silence would mislead.