...
1 package profile
2
3 import "context"
4
5 type Storage interface {
6 CreateIdentityProfile(ctx context.Context, profile Profile) (err error)
7
8
9 GetIdentityProfile(ctx context.Context, subject string) (profile *Profile, err error)
10 ExpireIdentityProfile(ctx context.Context, subject string) (err error)
11 CreateAlias(ctx context.Context, alias, subject string) (err error)
12 GetSubjectFromAlias(ctx context.Context, alias string) (subject string, err error)
13 AddAliasToProfile(c context.Context, userProfile *Profile) (err error)
14 IsOffline() bool
15 }
16
View as plain text