mirror of
https://github.com/safing/portbase
synced 2025-09-16 01:59:51 +00:00
Add Purge method/interface to database system
Also, implement Purger interface in bbolt storage.
This commit is contained in:
parent
362539692e
commit
82af986224
5 changed files with 158 additions and 3 deletions
|
@ -36,3 +36,8 @@ type Maintainer interface {
|
|||
type Batcher interface {
|
||||
PutMany(shadowDelete bool) (batch chan<- record.Record, errs <-chan error)
|
||||
}
|
||||
|
||||
// Purger defines the database storage API for backends that support the purge operation.
|
||||
type Purger interface {
|
||||
Purge(ctx context.Context, q *query.Query, local, internal, shadowDelete bool) (int, error)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue