pages-server/server/database/interface.go

16 lines
345 B
Go
Raw Normal View History

2021-12-03 03:15:48 +00:00
package database
2021-12-05 18:00:57 +00:00
import (
"github.com/akrylysov/pogreb"
"github.com/go-acme/lego/v4/certificate"
)
2021-12-03 03:15:48 +00:00
2021-12-05 16:42:53 +00:00
type CertDB interface {
Close() error
2021-12-05 18:00:57 +00:00
Put(name string, cert *certificate.Resource) error
Get(name []byte) (*certificate.Resource, error)
2021-12-03 03:15:48 +00:00
Delete(key []byte) error
Compact() (pogreb.CompactionResult, error)
Items() *pogreb.ItemIterator
}