wrap cert db and make sync gracefull

This commit is contained in:
6543
2021-12-05 17:42:53 +01:00
parent 11fa729686
commit de439f9bec
7 changed files with 95 additions and 14 deletions

View File

@ -2,8 +2,8 @@ package database
import "github.com/akrylysov/pogreb"
type KeyDB interface {
Sync() error
type CertDB interface {
Close() error
Put(key []byte, value []byte) error
Get(key []byte) ([]byte, error)
Delete(key []byte) error