pages-server/server/database/interface.go

16 lines
328 B
Go
Raw Permalink 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 string) (*certificate.Resource, error)
Delete(key string) error
Compact() (string, error)
2021-12-03 03:15:48 +00:00
Items() *pogreb.ItemIterator
}