mirror of
https://github.com/mitchell/selfpass.git
synced 2025-12-14 21:27:22 +00:00
Add 2 migrations for ids and boltdb; minor refactor to creds service
This commit is contained in:
parent
cf90993d4e
commit
a67be14fcb
13 changed files with 203 additions and 58 deletions
|
|
@ -5,6 +5,7 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/go-kit/kit/log"
|
||||
|
||||
"github.com/mitchell/selfpass/services/credentials/types"
|
||||
)
|
||||
|
||||
|
|
@ -97,18 +98,3 @@ func (svc ServiceLogger) Delete(ctx context.Context, id string) (err error) {
|
|||
err = svc.next.Delete(ctx, id)
|
||||
return err
|
||||
}
|
||||
|
||||
func (svc ServiceLogger) DumpDB(ctx context.Context) (output []byte, err error) {
|
||||
defer func(begin time.Time) {
|
||||
_ = svc.l.Log(
|
||||
"service", "Credentials",
|
||||
"method", "Dump",
|
||||
"output", output,
|
||||
"err", err,
|
||||
"took", time.Since(begin),
|
||||
)
|
||||
}(time.Now())
|
||||
|
||||
output, err = svc.next.DumpDB(ctx)
|
||||
return output, err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue