Documentation
¶
Index ¶
- func GetEventsSince(serialNumber int64, topicName string) ([]*pb.Event, error)
- func Init()
- type EventStore
- type Store
- func (store *Store) CreateTopic(name string) error
- func (store *Store) DeleteTopic(name string) error
- func (store *Store) GetEvent(serialNumber int64, topicName string) (*pb.Event, error)
- func (store *Store) Init()
- func (store *Store) ListTopics(pattern string) ([]string, error)
- func (store *Store) SaveEvent(event *pb.Event, topicName string) (int64, error)
- func (store *Store) Sync()
- type TopicStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEventsSince ¶
GetEventsSince returns all events with a serial number greater than provided
Types ¶
type EventStore ¶
type EventStore interface { SaveEvent(event *pb.Event, topicName string) error GetEvent(serialNumber int64, topicName string) (*pb.Event, error) GetEventsSince(serialNumber int64, topicName string) ([]*pb.Event, error) }
EventStore defines event related methods
type Store ¶
Store holds database implementations
func (*Store) CreateTopic ¶
CreateTopic creates a new topic
func (*Store) DeleteTopic ¶
DeleteTopic deletes a topic
func (*Store) ListTopics ¶
ListTopics lists topics matching the pattern
Click to show internal directories.
Click to hide internal directories.