Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Type StorageType Location string }
func NewDefaultConfig ¶
func NewDefaultConfig() *Config
type Storage ¶
type Storage interface { ReadData(key string) ([]byte, error) WriteData(key string, val []byte) error }
Storage interface allows to read and write serialized data
func NewDefaultStorage ¶
func NewDefaultStorage() Storage
func NewStorage ¶
type StorageType ¶
type StorageType string
const ( TypeFile StorageType = "file" TypeInMem StorageType = "inmem" )
Click to show internal directories.
Click to hide internal directories.