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