Documentation
¶
Overview ¶
Package badger implements the storage interface using badger
Index ¶
- type Badger
- func (b *Badger) Close() error
- func (b *Badger) Delete(ctx context.Context, key string) error
- func (b *Badger) DeleteAll(ctx context.Context, prefix string) error
- func (b *Badger) DeleteIf(ctx context.Context, key string, condition kvstore.Condition) error
- func (b *Badger) Exists(ctx context.Context, key string) (bool, error)
- func (b *Badger) Get(ctx context.Context, key string) ([]byte, uint64, error)
- func (b *Badger) GetAll(ctx context.Context, prefix string) (kvstore.Entries, error)
- func (b *Badger) GetAllKeys(ctx context.Context, prefix string) ([]string, error)
- func (b *Badger) GetBatch(ctx context.Context, keys ...string) (kvstore.Entries, error)
- func (b *Badger) GetFirst(ctx context.Context, prefix string) (*kvstore.Entry, error)
- func (b *Badger) GetLimit(ctx context.Context, prefix string, limit int64) (kvstore.Entries, error)
- func (b *Badger) Move(ctx context.Context, oldKey string, newKey string) error
- func (b *Badger) MoveReplace(ctx context.Context, oldKey string, newKey string, value []byte) error
- func (b *Badger) MoveReplaceIf(ctx context.Context, oldKey string, newKey string, value []byte, ...) error
- func (b *Badger) Set(ctx context.Context, key string, value []byte) error
- func (b *Badger) SetDelete(ctx context.Context, key string, value []byte, delete string) error
- func (b *Badger) SetEmpty(ctx context.Context, key string) error
- func (b *Badger) SetExpiry(ctx context.Context, key string, value []byte, ttl time.Duration) error
- func (b *Badger) SetIf(ctx context.Context, key string, value []byte, condition kvstore.Condition) error
- func (b *Badger) SetIfNotExist(ctx context.Context, key string, value []byte) error
- func (b *Badger) SetIfNotExistExpiry(ctx context.Context, key string, value []byte, ttl time.Duration) error
- func (b *Badger) Subscribe(ctx context.Context, prefix string, handler kvstore.SubscriptionHandler) error
- type Logger
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Badger ¶
type Badger struct {
// contains filtered or unexported fields
}
func (*Badger) GetAllKeys ¶
func (*Badger) MoveReplace ¶
func (*Badger) MoveReplaceIf ¶
func (*Badger) SetIfNotExist ¶
func (*Badger) SetIfNotExistExpiry ¶
Click to show internal directories.
Click to hide internal directories.