store

package
v0.75.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AggregatingMemory added in v0.75.0

type AggregatingMemory struct {
	Memory
	WindowStart time.Time
	WindowEnd   time.Time
	// contains filtered or unexported fields
}

func NewAggregatingMemoryStore added in v0.75.0

func NewAggregatingMemoryStore() *AggregatingMemory

func NewAggregatingMemoryStoreWithTimeFunc added in v0.75.0

func NewAggregatingMemoryStoreWithTimeFunc(nowFunc func() time.Time) *AggregatingMemory

used in tests when deterministic (less random) time intervals are required

func (*AggregatingMemory) GetAggregatedEvents added in v0.75.0

func (am *AggregatingMemory) GetAggregatedEvents() []*types.Event

func (*AggregatingMemory) ResetAggregationWindow added in v0.75.0

func (am *AggregatingMemory) ResetAggregationWindow() types.FlowEventAggregator

type Memory

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

func NewMemoryStore

func NewMemoryStore() *Memory

func (*Memory) Close

func (m *Memory) Close()

func (*Memory) DeleteEvents

func (m *Memory) DeleteEvents(ids []uuid.UUID)

func (*Memory) GetEvents

func (m *Memory) GetEvents() []*types.Event

func (*Memory) StoreEvent

func (m *Memory) StoreEvent(event *types.Event)

Jump to

Keyboard shortcuts

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