Documentation
¶
Index ¶
- func ConfigureStore(ctx context.Context, name string, store Config)
- func Load(ctx context.Context, name string, key string) (value []byte, err error)
- func RegisterBuilder(ctx context.Context, name string, builder Builder)
- func RegisterStore(ctx context.Context, store Store)
- func Save(ctx context.Context, name string, key string, value []byte) (err error)
- func StopAll(ctx context.Context)
- type Builder
- type Config
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureStore ¶
ConfigureStore configures store with configuration data
func RegisterBuilder ¶
RegisterBuilder registers store builder in the builder catalog
func RegisterStore ¶
RegisterStore registers store in the store catalog
Types ¶
type Store ¶
type Store interface {
//Name get name of the Store
Name() string
//Type get type of the Store
Type() string
//Save saves value with provided key
Save(ctx context.Context, key string, value []byte) (err error)
//Load loads value with provided key
Load(ctx context.Context, key string) (value []byte, err error)
//Stop stops store instance
Stop(ctx context.Context)
}
Store Manopus storage interface
Click to show internal directories.
Click to hide internal directories.