Documentation ¶
Index ¶
- Variables
- func GetJSON(ctx context.Context, s Store, k string, v interface{}) error
- func PutJSON(ctx context.Context, s Store, k string, v interface{}) error
- type Config
- type FSStore
- type Factory
- func (f Factory) MustOpen(ctx context.Context, l L.L, cfg *Config) Store
- func (f Factory) MustOpenString(ctx context.Context, l L.L, text string) Store
- func (f Factory) Open(ctx context.Context, l L.L, cfg *Config) (Store, error)
- func (f Factory) OpenString(ctx context.Context, l L.L, text string) (Store, error)
- type GORMStore
- func (g *GORMStore) Delete(ctx context.Context, key string) error
- func (g *GORMStore) Get(ctx context.Context, key string) ([]byte, error)
- func (g *GORMStore) Put(ctx context.Context, k string, v []byte) error
- func (g *GORMStore) Setup(ctx context.Context) error
- func (g *GORMStore) Teardown(ctx context.Context) error
- type Store
- type StoreWithKeyPrefix
- func (s *StoreWithKeyPrefix) Delete(ctx context.Context, k string) error
- func (s *StoreWithKeyPrefix) Get(ctx context.Context, k string) ([]byte, error)
- func (s *StoreWithKeyPrefix) Put(ctx context.Context, k string, v []byte) error
- func (s *StoreWithKeyPrefix) Setup(ctx context.Context) error
- func (s *StoreWithKeyPrefix) Teardown(ctx context.Context) error
- type VarStore
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
Functions ¶
Types ¶
type Config ¶
type Config = storefactory.Config
Click to show internal directories.
Click to hide internal directories.