agg

package
v0.0.0-...-e8abf59 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2026 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Aggregator

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

Aggregator persists live counters into SQLite and then resets them.

func New

func New(h *bpfgo.Handles, db *sql.DB) *Aggregator

func (*Aggregator) FlushOnce

func (a *Aggregator) FlushOnce()

FlushOnce performs a single synchronous flush of current counters to the DB.

func (*Aggregator) Run

func (a *Aggregator) Run(flushInterval time.Duration, exteralFlushInterval time.Duration)

Jump to

Keyboard shortcuts

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