Documentation
¶
Index ¶
- type CreateUserParams
- type DBTX
- type IndexUsersParams
- type Meow
- type Queries
- func (q *Queries) CreateMeow(ctx context.Context, content string) (Meow, error)
- func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) (User, error)
- func (q *Queries) DeleteUser(ctx context.Context, id pgtype.UUID) error
- func (q *Queries) GetUserByEmail(ctx context.Context, email string) (User, error)
- func (q *Queries) GetUserById(ctx context.Context, id pgtype.UUID) (User, error)
- func (q *Queries) GetUserByResetToken(ctx context.Context, resetPasswordToken pgtype.Text) (User, error)
- func (q *Queries) GetUserByUsername(ctx context.Context, username string) (User, error)
- func (q *Queries) IndexMeows(ctx context.Context) ([]Meow, error)
- func (q *Queries) IndexUsers(ctx context.Context, arg IndexUsersParams) ([]User, error)
- func (q *Queries) ShowMeow(ctx context.Context, id pgtype.UUID) (Meow, error)
- func (q *Queries) UpdateLastLoginAt(ctx context.Context, arg UpdateLastLoginAtParams) (User, error)
- func (q *Queries) UpdateLoginAttempts(ctx context.Context, arg UpdateLoginAttemptsParams) (User, error)
- func (q *Queries) UpdatePasswordResetToken(ctx context.Context, arg UpdatePasswordResetTokenParams) (User, error)
- func (q *Queries) UpdateUser(ctx context.Context, arg UpdateUserParams) (User, error)
- func (q *Queries) VerifyEmail(ctx context.Context, id pgtype.UUID) (User, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type UpdateLastLoginAtParams
- type UpdateLoginAttemptsParams
- type UpdatePasswordResetTokenParams
- type UpdateUserParams
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateUserParams ¶
type IndexUsersParams ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateMeow ¶
func (*Queries) CreateUser ¶
func (*Queries) DeleteUser ¶
func (*Queries) GetUserByEmail ¶
func (*Queries) GetUserById ¶
func (*Queries) GetUserByResetToken ¶
func (*Queries) GetUserByUsername ¶
func (*Queries) IndexUsers ¶
func (*Queries) UpdateLastLoginAt ¶
func (*Queries) UpdateLoginAttempts ¶
func (*Queries) UpdatePasswordResetToken ¶
func (*Queries) UpdateUser ¶
func (*Queries) VerifyEmail ¶
type UpdateLastLoginAtParams ¶
type UpdateUserParams ¶
type User ¶
type User struct {
ID pgtype.UUID
Username string
DisplayName string
Email string
EmailVerified pgtype.Bool
PasswordHash string
ResetPasswordToken pgtype.Text
ResetPasswordExpires pgtype.Timestamp
CreatedAt pgtype.Timestamp
LastLoginAt pgtype.Timestamp
AccountLocked pgtype.Bool
FailedLoginAttempts pgtype.Int4
}
Click to show internal directories.
Click to hide internal directories.