Documentation ¶
Overview ¶
Package storage Date: 2024/3/26 11:20 Author: Amu Description:
Package storage Date: 2024/3/26 11:42 Author: Amu Description:
Index ¶
- Variables
- type Storage
- func (s *Storage) Delete(key string) error
- func (s *Storage) Get(key string) ([]byte, error)
- func (s *Storage) GetJson(key string, out interface{}) error
- func (s *Storage) GetString(key string) (string, error)
- func (s *Storage) Keys(prefix string, recursive bool) ([]string, error)
- func (s *Storage) Path() string
- func (s *Storage) Put(key string, val []byte) error
- func (s *Storage) PutJson(key string, val interface{}) error
- func (s *Storage) PutString(key string, val string) error
- func (s *Storage) Update(fn func(tx *Tx) error) error
- func (s *Storage) View(fn func(tx *Tx) error) error
- type Tx
- func (tx *Tx) Delete(key string) error
- func (tx *Tx) Get(key string) ([]byte, error)
- func (tx *Tx) GetJson(key string, out interface{}) error
- func (tx *Tx) GetString(key string) (string, error)
- func (tx *Tx) Keys(prefix string, recursive bool) ([]string, error)
- func (tx *Tx) Put(key string, val []byte) error
- func (tx *Tx) PutJson(key string, val interface{}) error
- func (tx *Tx) PutString(key string, val string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Separator = "/" ErrKeyNotFound = errors.New("Key is not found") )
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.