repo

package
v0.0.0-...-18ac4d2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OneTimeLinkPostgres

type OneTimeLinkPostgres struct {
	*postgres.Postgres
}

OneTimeLinkPostgres stores entity.OneTimeLink-s in postgres

func NewPostgres

func NewPostgres(pg *postgres.Postgres) *OneTimeLinkPostgres

NewPostgres - create new OneTimeLinkPostgres

func (*OneTimeLinkPostgres) Check

func (r *OneTimeLinkPostgres) Check(ctx context.Context, link string) (bool, error)

func (*OneTimeLinkPostgres) Get

Get entity.OneTimeLink by link and expire this record. Returns empty entity.OneTimeLink if no data found

func (*OneTimeLinkPostgres) Store

Store entity.OneTimeLink in repo

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL