Documentation ¶
Index ¶
- func NewBBolt(name, location string) (storage.Interface, error)
- type BBolt
- func (b *BBolt) Delete(key string) error
- func (b *BBolt) Get(key string) (record.Record, error)
- func (b *BBolt) GetMeta(key string) (*record.Meta, error)
- func (b *BBolt) Injected() bool
- func (b *BBolt) MaintainRecordStates(ctx context.Context, purgeDeletedBefore time.Time, shadowDelete bool) error
- func (b *BBolt) Purge(ctx context.Context, q *query.Query, local, internal, shadowDelete bool) (int, error)
- func (b *BBolt) Put(r record.Record) (record.Record, error)
- func (b *BBolt) PutMany(shadowDelete bool) (chan<- record.Record, <-chan error)
- func (b *BBolt) Query(q *query.Query, local, internal bool) (*iterator.Iterator, error)
- func (b *BBolt) ReadOnly() bool
- func (b *BBolt) Shutdown() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BBolt ¶
type BBolt struct {
// contains filtered or unexported fields
}
BBolt database made pluggable for gobaseline.
func (*BBolt) MaintainRecordStates ¶
func (b *BBolt) MaintainRecordStates(ctx context.Context, purgeDeletedBefore time.Time, shadowDelete bool) error
MaintainRecordStates maintains records states in the database.
func (*BBolt) Purge ¶
func (b *BBolt) Purge(ctx context.Context, q *query.Query, local, internal, shadowDelete bool) (int, error)
Purge deletes all records that match the given query. It returns the number of successful deletes and an error.
Click to show internal directories.
Click to hide internal directories.