Documentation ¶
Index ¶
- type RawEventRow
- type StorageSQLite3
- func (s StorageSQLite3) AddEventRow(payload payload.Payload) bool
- func (s StorageSQLite3) DeleteAllEventRows() int64
- func (s StorageSQLite3) DeleteEventRows(ids []int) int64
- func (s StorageSQLite3) GetAllEventRows() []storageiface.EventRow
- func (s StorageSQLite3) GetEventRowsWithinRange(eventRange int) []storageiface.EventRow
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RawEventRow ¶
type RawEventRow struct {
// contains filtered or unexported fields
}
type StorageSQLite3 ¶
type StorageSQLite3 struct {
DbName string
}
func Init ¶
func Init(dbName string) *StorageSQLite3
func (StorageSQLite3) AddEventRow ¶
func (s StorageSQLite3) AddEventRow(payload payload.Payload) bool
Add stores an event payload in the database.
func (StorageSQLite3) DeleteAllEventRows ¶
func (s StorageSQLite3) DeleteAllEventRows() int64
DeleteAllEventRows removes all events from the database.
func (StorageSQLite3) DeleteEventRows ¶
func (s StorageSQLite3) DeleteEventRows(ids []int) int64
DeleteEventRows removes a range of ids from the database.
func (StorageSQLite3) GetAllEventRows ¶
func (s StorageSQLite3) GetAllEventRows() []storageiface.EventRow
GetAllEventRows returns all events in the database.
func (StorageSQLite3) GetEventRowsWithinRange ¶
func (s StorageSQLite3) GetEventRowsWithinRange(eventRange int) []storageiface.EventRow
GetEventRowsWithinRange returns a specified range of events from the database.
Click to show internal directories.
Click to hide internal directories.