Documentation ¶
Index ¶
- Variables
- func GetJSON(ctx context.Context, s Store, p, k string, v interface{}) error
- func PutJSON(ctx context.Context, s Store, p, k string, v interface{}) error
- type Config
- type FSStore
- func (f *FSStore) Delete(_ context.Context, p, k string) error
- func (f *FSStore) Get(_ context.Context, p, k string) ([]byte, error)
- func (f *FSStore) List(_ context.Context, p string) ([]string, error)
- func (f *FSStore) Put(_ context.Context, p, k string, v []byte) error
- func (f *FSStore) Setup(context.Context) error
- func (f *FSStore) Teardown(context.Context) error
- 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, p, k string) error
- func (g *GORMStore) Get(ctx context.Context, p, k string) ([]byte, error)
- func (g *GORMStore) List(ctx context.Context, p string) ([]string, error)
- func (g *GORMStore) Put(ctx context.Context, p, k string, v []byte) error
- func (g *GORMStore) Setup(ctx context.Context) error
- func (g *GORMStore) Teardown(ctx context.Context) error
- type Store
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.