mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-25 06:16:58 +00:00
make db interface more generic and add memdb
This commit is contained in:
parent
e5af66b2cd
commit
bc3d3befee
5 changed files with 78 additions and 16 deletions
|
@ -8,8 +8,8 @@ import (
|
|||
type CertDB interface {
|
||||
Close() error
|
||||
Put(name string, cert *certificate.Resource) error
|
||||
Get(name []byte) (*certificate.Resource, error)
|
||||
Delete(key []byte) error
|
||||
Compact() (pogreb.CompactionResult, error)
|
||||
Get(name string) (*certificate.Resource, error)
|
||||
Delete(key string) error
|
||||
Compact() (string, error)
|
||||
Items() *pogreb.ItemIterator
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue