Documentation
¶
Index ¶
- Constants
- Variables
- func ExecTX(ctx context.Context, conn *pgx.Conn, fn func(q *Queries) error) error
- func NewEmailVerifyRepo(data *Data, logger log.Logger) biz.AuthRepo
- func NewPgxPool(config *conf.Data_Database) (*pgx.Conn, error)
- type CreateVerifyEmailParams
- type DBTX
- type Data
- type Queries
- func (q *Queries) CreateVerifyEmail(ctx context.Context, arg CreateVerifyEmailParams) (VerifyEmail, error)
- func (q *Queries) UpdateUser(ctx context.Context, arg UpdateUserParams) (User, error)
- func (q *Queries) UpdateVerifyEmail(ctx context.Context, arg UpdateVerifyEmailParams) (VerifyEmail, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type UpdateUserParams
- type UpdateVerifyEmailParams
- type User
- type VerifyEmail
Constants ¶
View Source
const CreateVerifyEmail = `` /* 183-byte string literal not displayed */
View Source
const UpdateUser = `` /* 192-byte string literal not displayed */
View Source
const UpdateVerifyEmail = `` /* 237-byte string literal not displayed */
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewData, NewEmailVerifyRepo, NewPgxPool)
ProviderSet is data providers.
Functions ¶
func NewPgxPool ¶
func NewPgxPool(config *conf.Data_Database) (*pgx.Conn, error)
Types ¶
type CreateVerifyEmailParams ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateVerifyEmail ¶
func (q *Queries) CreateVerifyEmail(ctx context.Context, arg CreateVerifyEmailParams) (VerifyEmail, error)
func (*Queries) UpdateUser ¶
func (*Queries) UpdateVerifyEmail ¶
func (q *Queries) UpdateVerifyEmail(ctx context.Context, arg UpdateVerifyEmailParams) (VerifyEmail, error)
type UpdateUserParams ¶
type UpdateVerifyEmailParams ¶
type VerifyEmail ¶
type VerifyEmail struct { ID int64 Email string UserID pgtype.UUID SecretCode string IsUsed bool CreatedAt pgtype.Timestamptz ExpiredAt pgtype.Timestamptz }
Click to show internal directories.
Click to hide internal directories.