Documentation ¶
Index ¶
- func NewBadger(name, location string) (storage.Interface, error)
- type Badger
- func (b *Badger) Delete(key string) error
- func (b *Badger) Get(key string) (record.Record, error)
- func (b *Badger) GetMeta(key string) (*record.Meta, error)
- func (b *Badger) Injected() bool
- func (b *Badger) Maintain(_ context.Context) error
- func (b *Badger) MaintainRecordStates(ctx context.Context, purgeDeletedBefore time.Time, shadowDelete bool) error
- func (b *Badger) MaintainThorough(_ context.Context) (err error)
- func (b *Badger) Put(r record.Record) (record.Record, error)
- func (b *Badger) Query(q *query.Query, local, internal bool) (*iterator.Iterator, error)
- func (b *Badger) ReadOnly() bool
- func (b *Badger) Shutdown() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Badger ¶
type Badger struct {
// contains filtered or unexported fields
}
Badger database made pluggable for portbase.
func (*Badger) MaintainRecordStates ¶ added in v0.5.2
func (b *Badger) MaintainRecordStates(ctx context.Context, purgeDeletedBefore time.Time, shadowDelete bool) error
MaintainRecordStates maintains records states in the database.
func (*Badger) MaintainThorough ¶
MaintainThorough runs a thorough maintenance operation on the database.
Click to show internal directories.
Click to hide internal directories.