-
-
Notifications
You must be signed in to change notification settings - Fork 930
/
reference.go
46 lines (40 loc) · 1.26 KB
/
reference.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package persistence
import (
"context"
"io"
"github.com/gobuffalo/pop/v5"
"github.com/ory/kratos/continuity"
"github.com/ory/kratos/courier"
"github.com/ory/kratos/identity"
"github.com/ory/kratos/selfservice/errorx"
"github.com/ory/kratos/selfservice/flow/login"
"github.com/ory/kratos/selfservice/flow/recovery"
"github.com/ory/kratos/selfservice/flow/registration"
"github.com/ory/kratos/selfservice/flow/settings"
"github.com/ory/kratos/selfservice/flow/verification"
"github.com/ory/kratos/selfservice/strategy/recoverytoken"
"github.com/ory/kratos/session"
)
type Provider interface {
Persister() Persister
}
type Persister interface {
continuity.Persister
identity.PrivilegedPool
registration.RequestPersister
login.RequestPersister
settings.RequestPersister
courier.Persister
session.Persister
errorx.Persister
verification.Persister
recovery.RequestPersister
recoverytoken.Persister
Close(context.Context) error
Ping(context.Context) error
MigrationStatus(c context.Context, b io.Writer) error
MigrateDown(c context.Context, steps int) error
MigrateUp(c context.Context) error
GetConnection(ctx context.Context) *pop.Connection
Transaction(ctx context.Context, callback func(ctx context.Context, connection *pop.Connection) error) error
}