pages-server/server/database/interface.go

13 lines
267 B
Go
Raw Normal View History

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