Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Store ¶
type Store interface { // Persist persists an event and returns its ID. Persist(eventType string, data string) (int64, error) // State returns the current state. State() (*models.State, error) // Migrate migrates the database schema to the latest available version. Migrate() error // Ping checks the contnectivity with the store. Ping() error // Reset removes all stored data. Reset() error }
Store describes a data store.
func NewMySQLStore ¶
NewMySQLStore creates a new store that uses MySQL as a backend.
Click to show internal directories.
Click to hide internal directories.