Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mongo ¶
type Mongo struct {
// contains filtered or unexported fields
}
Mongo uses a mongodb for storage
func (*Mongo) CheckReady ¶
CheckReady checks to see if the service can connect
func (*Mongo) GetEvents ¶
func (m *Mongo) GetEvents(coll, uuid string) ([]*StoredEvent, error)
GetEvents gets all events for a particular uuid in a particular collection
func (*Mongo) GetVersion ¶
GetVersion gets the most recently inserted event version or 0 on not found/error
type Storage ¶
type Storage interface { IDs(collection string) ([]string, error) GetEvents(collection, uuid string) ([]*StoredEvent, error) GetVersion(collection, uuid string) int StoreEvent(collection, uuid, eventType, eventData string, version int) error }
Storage is the basic interface for storing of event streams
Click to show internal directories.
Click to hide internal directories.