Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ActivateMockedError ¶
func ActivateMockedError()
ActivateMockedError forces the return of ErrMockedError from current storage manager. This method should only be used for testing purposes.
func DeactivateMockedError ¶
func DeactivateMockedError()
DeactivateMockedError disables mocked storage error from a previous activation. This method should only be used for testing purposes.
Types ¶
type Config ¶ added in v0.2.0
type Config struct { Type StorageType MySQL *sql.Config BadgerDB *badgerdb.Config }
Config represents an storage manager configuration.
func (*Config) UnmarshalYAML ¶ added in v0.2.0
UnmarshalYAML satisfies Unmarshaler interface.
type Storage ¶
type Storage interface { // Shutdown shuts down storage sub system. Shutdown() // contains filtered or unexported methods }
Storage represents an entity storage interface.
type StorageType ¶ added in v0.2.0
type StorageType int
StorageType represents a storage manager type.
const ( // MySQL represents a MySQL storage type. MySQL StorageType = iota // BadgerDB represents a BadgerDB storage type. BadgerDB // Memory represents a in-memstorage storage type. Memory )
Click to show internal directories.
Click to hide internal directories.