Documentation ¶
Index ¶
- type AllowList
- type Challenge
- func (c *Challenge) Delete(ctx context.Context, dbi sqlx.ExecerContext, paymentID uuid.UUID) error
- func (c *Challenge) DeleteAfter(ctx context.Context, dbi sqlx.ExecerContext, interval time.Duration) error
- func (c *Challenge) Get(ctx context.Context, dbi sqlx.QueryerContext, paymentID uuid.UUID) (model.Challenge, error)
- func (c *Challenge) Upsert(ctx context.Context, dbi sqlx.ExecerContext, chl model.Challenge) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllowList ¶
type AllowList struct{}
func NewAllowList ¶
func NewAllowList() *AllowList
func (*AllowList) GetAllowListEntry ¶
func (a *AllowList) GetAllowListEntry(ctx context.Context, dbi sqlx.QueryerContext, paymentID uuid.UUID) (model.AllowListEntry, error)
GetAllowListEntry retrieves a model.AllowListEntry from the database for the given paymentID.
type Challenge ¶
type Challenge struct{}
func NewChallenge ¶
func NewChallenge() *Challenge
func (*Challenge) Delete ¶
Delete removes a model.Challenge from the database identified by the paymentID.
func (*Challenge) DeleteAfter ¶
func (c *Challenge) DeleteAfter(ctx context.Context, dbi sqlx.ExecerContext, interval time.Duration) error
DeleteAfter removes model.Challenge's from the database where their created at plus the specified interval it less than the current time. The interval should be specified in minutes.
Click to show internal directories.
Click to hide internal directories.