state

package
v0.21.1 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(ctx context.Context, conn repository.Querier, state *model.DbState) error

func DeleteByEventId

func DeleteByEventId(
	ctx context.Context,
	conn repository.Querier,
	eventID int,
) (int, error)

deletes all entries for an event with eventID

func LoadByEventId

func LoadByEventId(
	ctx context.Context,
	conn repository.Querier,
	eventID int,
	startTS float64, num int,
) ([]*model.DbState, error)

func LoadByEventIdWithDelta

func LoadByEventIdWithDelta(
	ctx context.Context,
	conn repository.Querier, eventID int, startTS float64, num int) (
	*model.StateData, []*model.StateDelta, error,
)

loads num state entries for an event start at timestamp startTS. the first row contains full data, all other rows just containing the delta information relative to the previous entry

Types

This section is empty.

Jump to

Keyboard shortcuts

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