state

package
v0.7.0-pre3 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

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

func DeleteByEventId

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

deletes all entries for an event with eventID

func LoadByEventId

func LoadByEventId(conn repository.Querier, eventID int) ([]*model.DbState, error)

func LoadByEventIdWithDelta

func LoadByEventIdWithDelta(
	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