database: add Close()
This commit is contained in:
parent
4186b0c6b0
commit
66e4ea082b
3
Procfile
3
Procfile
|
@ -1,3 +0,0 @@
|
|||
route: ./route
|
||||
httpagent: ./httpagent -token 850045ee-5bec-4c14-9392-a4aa85ec3220 -domain embody-fire-shad.route.xeserv.us -server embody-fire-shad.route.xeserv.us:36971 -method tcp
|
||||
helloserver: ./helloserver -port 9090
|
|
@ -241,3 +241,7 @@ func (b *BoltDBStorage) DeleteCert(ct context.Context, key string) error {
|
|||
|
||||
return b.db.DeleteStruct(&cc)
|
||||
}
|
||||
|
||||
func (b *BoltDBStorage) Close() error {
|
||||
return b.db.Close()
|
||||
}
|
||||
|
|
|
@ -25,6 +25,8 @@ type Storage interface {
|
|||
GetCert(ctx context.Context, key string) ([]byte, error)
|
||||
PutCert(ctx context.Context, key string, data []byte) error
|
||||
DeleteCert(ctx context.Context, key string) error
|
||||
|
||||
Close() error
|
||||
}
|
||||
|
||||
type storageManager struct {
|
||||
|
|
Loading…
Reference in New Issue