Documentation
¶
Index ¶
- type Store
- func (s *Store) Close() error
- func (s *Store) EventCounts() (map[string]int, error)
- func (s *Store) GetState(key string) (string, error)
- func (s *Store) InsertEvent(evt events.Event) (int64, error)
- func (s *Store) MarkSynced(upToID int64) error
- func (s *Store) SetState(key, value string) error
- func (s *Store) TotalEvents() (int, error)
- func (s *Store) UnsyncedEvents(limit int) ([]StoredEvent, error)
- type StoredEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store persists events to a local SQLite database.
func (*Store) EventCounts ¶
EventCounts returns the count of each event type.
func (*Store) InsertEvent ¶
InsertEvent stores a parsed event.
func (*Store) MarkSynced ¶
MarkSynced marks events as synced up to the given ID.
func (*Store) TotalEvents ¶
TotalEvents returns the total number of stored events.
func (*Store) UnsyncedEvents ¶
func (s *Store) UnsyncedEvents(limit int) ([]StoredEvent, error)
UnsyncedEvents returns events that haven't been synced to SC Bridge yet.
Click to show internal directories.
Click to hide internal directories.