pages-server/server/database/interface.go

13 lines
265 B
Go
Raw Normal View History

2021-12-03 03:15:48 +00:00
package database
import "github.com/akrylysov/pogreb"
type KeyDB interface {
Sync() error
Put(key []byte, value []byte) error
Get(key []byte) ([]byte, error)
Delete(key []byte) error
Compact() (pogreb.CompactionResult, error)
Items() *pogreb.ItemIterator
}