Documentation ¶
Index ¶
- Variables
- type Config
- type Storage
- func (s *Storage) Delete(key string) error
- func (s *Storage) Get(key string) ([]byte, error)
- func (s *Storage) GetJSON(key string, value any) error
- func (s *Storage) KeyExists(key string) (bool, error)
- func (s *Storage) List(key_prefix string) ([]string, error)
- func (s *Storage) Put(key string, value []byte) error
- func (s *Storage) PutObject(key string, value any) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotExists error = errors.New("Not exists")
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func (*Storage) Get ¶
Get a key from storage. If key is not exists, a ErrNotExists error is returnd.
Click to show internal directories.
Click to hide internal directories.