Documentation ¶
Index ¶
- type Persister
- func (p *Persister) Add(ctx context.Context, errs ...error) (uuid.UUID, error)
- func (p *Persister) AddMessage(ctx context.Context, m *courier.Message) error
- func (p *Persister) Clear(ctx context.Context, olderThan time.Duration, force bool) (err error)
- func (p *Persister) Close(c context.Context) error
- func (p *Persister) CreateIdentity(ctx context.Context, i *identity.Identity) error
- func (p *Persister) CreateLoginRequest(_ context.Context, r *login.Request) error
- func (p *Persister) CreateProfileRequest(_ context.Context, r *profile.Request) error
- func (p *Persister) CreateRegistrationRequest(_ context.Context, r *registration.Request) error
- func (p *Persister) CreateSession(ctx context.Context, s *session.Session) error
- func (p *Persister) DeleteIdentity(_ context.Context, id uuid.UUID) error
- func (p *Persister) DeleteSession(ctx context.Context, sid uuid.UUID) error
- func (p *Persister) DeleteSessionsFor(ctx context.Context, sid uuid.UUID) error
- func (p *Persister) FindByCredentialsIdentifier(ctx context.Context, ct identity.CredentialsType, match string) (*identity.Identity, *identity.Credentials, error)
- func (p *Persister) GetIdentity(_ context.Context, id uuid.UUID) (*identity.Identity, error)
- func (p *Persister) GetIdentityConfidential(_ context.Context, id uuid.UUID) (*identity.Identity, error)
- func (p *Persister) GetLoginRequest(_ context.Context, id uuid.UUID) (*login.Request, error)
- func (p *Persister) GetProfileRequest(_ context.Context, id uuid.UUID) (*profile.Request, error)
- func (p *Persister) GetRegistrationRequest(_ context.Context, id uuid.UUID) (*registration.Request, error)
- func (p *Persister) GetSession(ctx context.Context, sid uuid.UUID) (*session.Session, error)
- func (p *Persister) ListIdentities(ctx context.Context, limit, offset int) ([]identity.Identity, error)
- func (p *Persister) MigrateDown(c context.Context, steps int) error
- func (p *Persister) MigrateUp(c context.Context) error
- func (p *Persister) MigrationStatus(c context.Context, w io.Writer) error
- func (p *Persister) NextMessages(ctx context.Context, limit uint8) ([]courier.Message, error)
- func (p *Persister) Ping(c context.Context) error
- func (p *Persister) Read(ctx context.Context, id uuid.UUID) ([]json.RawMessage, error)
- func (p *Persister) SetMessageStatus(ctx context.Context, id uuid.UUID, ms courier.MessageStatus) error
- func (p *Persister) UpdateIdentity(ctx context.Context, i *identity.Identity) error
- func (p *Persister) UpdateIdentityConfidential(ctx context.Context, i *identity.Identity) error
- func (p *Persister) UpdateLoginRequest(ctx context.Context, id uuid.UUID, ct identity.CredentialsType, ...) error
- func (p *Persister) UpdateProfileRequest(ctx context.Context, r *profile.Request) error
- func (p *Persister) UpdateRegistrationRequest(ctx context.Context, id uuid.UUID, ct identity.CredentialsType, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Persister ¶
type Persister struct {
// contains filtered or unexported fields
}
func NewPersister ¶
func NewPersister(r persisterDependencies, conf configuration.Provider, c *pop.Connection) (*Persister, error)
func (*Persister) AddMessage ¶
func (*Persister) CreateIdentity ¶
func (*Persister) CreateLoginRequest ¶
func (*Persister) CreateProfileRequest ¶
func (*Persister) CreateRegistrationRequest ¶
func (*Persister) CreateSession ¶
func (*Persister) DeleteIdentity ¶
func (*Persister) DeleteSession ¶
func (*Persister) DeleteSessionsFor ¶
func (*Persister) FindByCredentialsIdentifier ¶
func (*Persister) GetIdentity ¶
func (*Persister) GetIdentityConfidential ¶
func (*Persister) GetLoginRequest ¶
func (*Persister) GetProfileRequest ¶
func (*Persister) GetRegistrationRequest ¶
func (*Persister) GetSession ¶
func (*Persister) ListIdentities ¶
func (*Persister) MigrationStatus ¶
func (*Persister) NextMessages ¶
func (*Persister) SetMessageStatus ¶
func (*Persister) UpdateIdentity ¶
func (*Persister) UpdateIdentityConfidential ¶
func (*Persister) UpdateLoginRequest ¶
func (p *Persister) UpdateLoginRequest(ctx context.Context, id uuid.UUID, ct identity.CredentialsType, rm *login.RequestMethod) error
func (*Persister) UpdateProfileRequest ¶
func (*Persister) UpdateRegistrationRequest ¶
func (p *Persister) UpdateRegistrationRequest(ctx context.Context, id uuid.UUID, ct identity.CredentialsType, rm *registration.RequestMethod) error
Click to show internal directories.
Click to hide internal directories.