Documentation ¶
Index ¶
- type Logger
- func (store *Logger) Close() error
- func (store *Logger) Delete(key storage.Key) error
- func (store *Logger) Get(key storage.Key) (storage.Value, error)
- func (store *Logger) GetAll(keys storage.Keys) (storage.Values, error)
- func (store *Logger) Iterate(opts storage.IterateOptions, fn func(storage.Iterator) error) error
- func (store *Logger) List(first storage.Key, limit int) (storage.Keys, error)
- func (store *Logger) Put(key storage.Key, value storage.Value) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger implements a zap.Logger for storage.KeyValueStore
func New ¶
func New(log *zap.Logger, store storage.KeyValueStore) *Logger
New creates a new Logger with log and store
Click to show internal directories.
Click to hide internal directories.