Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PollStore ¶
type PollStore struct {
// contains filtered or unexported fields
}
PollStore allows to access polls in the KV Store.
func (*PollStore) Get ¶
Get returns the poll for a given id. Returns an error if the poll doesn't exist or a KV Store error occurred.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is an interface to interact with the KV Store.
func (*Store) UpdateDatabase ¶
UpdateDatabase upgrades the database schema from a given version to the newest version.
type SystemStore ¶
type SystemStore struct {
// contains filtered or unexported fields
}
SystemStore allows to access system informations in the KV Store.
func (*SystemStore) GetVersion ¶
func (s *SystemStore) GetVersion() (string, error)
GetVersion returns the db schema version.
func (*SystemStore) SaveVersion ¶
func (s *SystemStore) SaveVersion(version string) error
SaveVersion sets the db schema version.
Click to show internal directories.
Click to hide internal directories.