mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-19 11:36:57 +00:00
wrap cert db and make sync gracefull
This commit is contained in:
parent
11fa729686
commit
de439f9bec
7 changed files with 95 additions and 14 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue