mirror of
https://github.com/safing/portbase
synced 2025-09-09 13:55:47 +00:00
Implement review
This commit is contained in:
parent
e0f96d5188
commit
0ee19298fa
9 changed files with 73 additions and 73 deletions
|
@ -10,7 +10,6 @@ import (
|
|||
type Interface interface {
|
||||
Get(key string) (record.Record, error)
|
||||
Put(m record.Record) error
|
||||
PutMany() (batch chan record.Record, err chan error)
|
||||
Delete(key string) error
|
||||
Query(q *query.Query, local, internal bool) (*iterator.Iterator, error)
|
||||
|
||||
|
@ -20,3 +19,8 @@ type Interface interface {
|
|||
MaintainThorough() error
|
||||
Shutdown() error
|
||||
}
|
||||
|
||||
// Batcher defines the database storage API for backends that support batch operations.
|
||||
type Batcher interface {
|
||||
PutMany() (batch chan<- record.Record, errs <-chan error)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue