mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2024-11-18 10:29:43 +00:00
12 lines
265 B
Go
12 lines
265 B
Go
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
|
|
}
|