Documentation ¶
Index ¶
- type Option
- type Store
- func (s *Store) Delete(namespace, key string) error
- func (s *Store) Get(namespace, key string) (ok bool, value io.Reader, err error)
- func (s *Store) Init(appVersion string, logger *slog.Logger) error
- func (s *Store) List(namespace, keyPrefix string) (map[string][]string, error)
- func (s *Store) NewContext() context.Context
- func (s *Store) Set(namespace, key string, value io.Reader) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
Option is a function that allows configuring the store.
func WithEncryptionKey ¶
WithEncryptionKey sets the store encryption key.
type Store ¶
func (*Store) Delete ¶
Delete a key within a specific namespace. An error is returned if the key doesn't exist.
func (*Store) Get ¶
Get returns the value associated with a key within a specific namespace. The returned boolean indicates whether the value was found or not.
func (*Store) NewContext ¶
NewContext returns a new child context of the main database context.
Click to show internal directories.
Click to hide internal directories.