Documentation ¶
Index ¶
- func WithTransaction(ctx context.Context, tx *pop.Connection) context.Context
- type Persister
- func (p *Persister) Add(ctx context.Context, csrfToken string, 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(ctx context.Context) error
- func (p *Persister) CreateIdentity(ctx context.Context, i *identity.Identity) error
- func (p *Persister) CreateLoginRequest(ctx context.Context, r *login.Request) error
- func (p *Persister) CreateRegistrationRequest(ctx context.Context, r *registration.Request) error
- func (p *Persister) CreateSession(ctx context.Context, s *session.Session) error
- func (p *Persister) CreateSettingsRequest(ctx context.Context, r *settings.Request) error
- func (p Persister) CreateVerifyRequest(ctx context.Context, r *verify.Request) error
- func (p *Persister) DeleteContinuitySession(ctx context.Context, id uuid.UUID) error
- func (p *Persister) DeleteIdentity(ctx 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) FindAddressByCode(ctx context.Context, code string) (*identity.VerifiableAddress, error)
- func (p *Persister) FindAddressByValue(ctx context.Context, via identity.VerifiableAddressType, value string) (*identity.VerifiableAddress, error)
- func (p *Persister) FindByCredentialsIdentifier(ctx context.Context, ct identity.CredentialsType, match string) (*identity.Identity, *identity.Credentials, error)
- func (p *Persister) GetConnection(ctx context.Context) *pop.Connection
- func (p *Persister) GetContinuitySession(ctx context.Context, id uuid.UUID) (*continuity.Container, error)
- func (p *Persister) GetIdentity(ctx context.Context, id uuid.UUID) (*identity.Identity, error)
- func (p *Persister) GetIdentityConfidential(ctx context.Context, id uuid.UUID) (*identity.Identity, error)
- func (p *Persister) GetLoginRequest(ctx context.Context, id uuid.UUID) (*login.Request, error)
- func (p *Persister) GetRegistrationRequest(ctx context.Context, id uuid.UUID) (*registration.Request, error)
- func (p *Persister) GetSession(ctx context.Context, sid uuid.UUID) (*session.Session, error)
- func (p *Persister) GetSettingsRequest(ctx context.Context, id uuid.UUID) (*settings.Request, error)
- func (p Persister) GetVerifyRequest(ctx context.Context, id uuid.UUID) (*verify.Request, error)
- func (p *Persister) LatestQueuedMessage(ctx context.Context) (*courier.Message, error)
- func (p *Persister) ListIdentities(ctx context.Context, limit, offset int) ([]identity.Identity, error)
- func (p *Persister) MarkRequestForced(ctx context.Context, id uuid.UUID) error
- func (p *Persister) MigrateDown(ctx context.Context, steps int) error
- func (p *Persister) MigrateUp(ctx context.Context) error
- func (p *Persister) MigrationStatus(ctx context.Context, w io.Writer) error
- func (p *Persister) NextMessages(ctx context.Context, limit uint8) ([]courier.Message, error)
- func (p *Persister) Ping(ctx context.Context) error
- func (p *Persister) Read(ctx context.Context, id uuid.UUID) (*errorx.ErrorContainer, error)
- func (p *Persister) SaveContinuitySession(ctx context.Context, c *continuity.Container) error
- func (p *Persister) SetMessageStatus(ctx context.Context, id uuid.UUID, ms courier.MessageStatus) error
- func (p *Persister) Transaction(ctx context.Context, callback func(connection *pop.Connection) error) error
- func (p *Persister) UpdateIdentity(ctx context.Context, i *identity.Identity) error
- func (p *Persister) UpdateLoginRequestMethod(ctx context.Context, id uuid.UUID, ct identity.CredentialsType, ...) error
- func (p *Persister) UpdateRegistrationRequest(ctx context.Context, id uuid.UUID, ct identity.CredentialsType, ...) error
- func (p *Persister) UpdateSettingsRequest(ctx context.Context, r *settings.Request) error
- func (p *Persister) UpdateVerifiableAddress(ctx context.Context, address *identity.VerifiableAddress) error
- func (p Persister) UpdateVerifyRequest(ctx context.Context, r *verify.Request) error
- func (p *Persister) VerifyAddress(ctx context.Context, code string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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) CreateRegistrationRequest ¶
func (*Persister) CreateSession ¶
func (*Persister) CreateSettingsRequest ¶
func (Persister) CreateVerifyRequest ¶
func (*Persister) DeleteContinuitySession ¶
func (*Persister) DeleteIdentity ¶
func (*Persister) DeleteSession ¶
func (*Persister) DeleteSessionsFor ¶
func (*Persister) FindAddressByCode ¶
func (*Persister) FindAddressByValue ¶
func (p *Persister) FindAddressByValue(ctx context.Context, via identity.VerifiableAddressType, value string) (*identity.VerifiableAddress, error)
func (*Persister) FindByCredentialsIdentifier ¶
func (*Persister) GetConnection ¶
func (*Persister) GetContinuitySession ¶
func (*Persister) GetIdentity ¶
func (*Persister) GetIdentityConfidential ¶
func (*Persister) GetLoginRequest ¶
func (*Persister) GetRegistrationRequest ¶
func (*Persister) GetSession ¶
func (*Persister) GetSettingsRequest ¶
func (Persister) GetVerifyRequest ¶
func (*Persister) LatestQueuedMessage ¶
func (*Persister) ListIdentities ¶
func (*Persister) MarkRequestForced ¶
func (*Persister) MigrateDown ¶
func (*Persister) MigrationStatus ¶
func (*Persister) NextMessages ¶
func (*Persister) SaveContinuitySession ¶
func (*Persister) SetMessageStatus ¶
func (*Persister) Transaction ¶
func (*Persister) UpdateIdentity ¶
func (*Persister) UpdateLoginRequestMethod ¶
func (p *Persister) UpdateLoginRequestMethod(ctx context.Context, id uuid.UUID, ct identity.CredentialsType, rm *login.RequestMethod) error
func (*Persister) UpdateRegistrationRequest ¶
func (p *Persister) UpdateRegistrationRequest(ctx context.Context, id uuid.UUID, ct identity.CredentialsType, rm *registration.RequestMethod) error
func (*Persister) UpdateSettingsRequest ¶
func (*Persister) UpdateVerifiableAddress ¶
func (Persister) UpdateVerifyRequest ¶
Click to show internal directories.
Click to hide internal directories.