Documentation ¶
Index ¶
- func Create(ctx context.Context, conn repository.Querier, state *model.DbState) error
- func DeleteByEventId(ctx context.Context, conn repository.Querier, eventID int) (int, error)
- func LoadByEventId(ctx context.Context, conn repository.Querier, eventID int) ([]*model.DbState, error)
- func LoadByEventIdWithDelta(ctx context.Context, conn repository.Querier, eventID int, startTS float64, ...) (*model.StateData, []*model.StateDelta, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteByEventId ¶
deletes all entries for an event with eventID
func LoadByEventId ¶
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.
Click to show internal directories.
Click to hide internal directories.