Versions in this module Expand all Collapse all v1 v1.0.10 Mar 20, 2019 Changes in this version + var ErrNotFound = errors.New("not found") + type Deserializer func([]byte) (interface{}, error) + type DiskStorage struct + func (d *DiskStorage) Delete(key string) error + func (d *DiskStorage) Get(key string) (interface{}, error) + func (d *DiskStorage) List() ([]interface{}, error) + func (d *DiskStorage) Put(key string, value interface{}) error + type MemoryStorage struct + func NewMemoryStorage() *MemoryStorage + func (m *MemoryStorage) Delete(key string) error + func (m *MemoryStorage) Get(key string) (interface{}, error) + func (m *MemoryStorage) List() ([]interface{}, error) + func (m *MemoryStorage) Put(key string, value interface{}) error + type Serializer func(interface{}) ([]byte, error) + type Storage interface + Delete func(key string) error + Get func(key string) (interface{}, error) + List func() ([]interface{}, error) + Put func(key string, value interface{}) error + func NewDiskStorage(name string, path string, serializer Serializer, deserializer Deserializer) (Storage, error)