Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventStore ¶
type EventStore struct {
// contains filtered or unexported fields
}
EventStore perists details for events which are to be sent to the Cacophony Events API.
func Open ¶
func Open(fileName string) (*EventStore, error)
Open opens the event store. It should be closed later with the Close() method.
func (*EventStore) All ¶
func (s *EventStore) All() ([]EventTimes, error)
All returns all the events stored in the event store as EventTimes instances. Events with identical details are grouped together into a single EventTimes instance.
func (*EventStore) Close ¶
func (s *EventStore) Close()
Close releases resources used by the EventStore. It should be called once the EventStore is no longer required.
func (*EventStore) Discard ¶
func (s *EventStore) Discard(ev EventTimes) error
Discard removes an event from from the store.
Click to show internal directories.
Click to hide internal directories.