Documentation ¶
Index ¶
- type CreateUserParams
- type DBTX
- type Queries
- func (q *Queries) CreateUser(ctx context.Context, arg *CreateUserParams) (User, error)
- func (q *Queries) DeleteUser(ctx context.Context, id int32) error
- func (q *Queries) GetUser(ctx context.Context, id int32) (User, error)
- func (q *Queries) GetUserByEmail(ctx context.Context, email string) (User, error)
- func (q *Queries) GetUserByUsername(ctx context.Context, username string) (User, error)
- func (q *Queries) GetUserDisplayName(ctx context.Context, id int32) (string, error)
- func (q *Queries) UpdateUser(ctx context.Context, arg *UpdateUserParams) error
- func (q *Queries) UpdateUserPassword(ctx context.Context, arg *UpdateUserPasswordParams) error
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type UpdateUserParams
- type UpdateUserPasswordParams
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateUserParams ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateUser ¶
func (*Queries) GetUserByEmail ¶
func (*Queries) GetUserByUsername ¶
func (*Queries) GetUserDisplayName ¶
func (*Queries) UpdateUser ¶
func (q *Queries) UpdateUser(ctx context.Context, arg *UpdateUserParams) error
func (*Queries) UpdateUserPassword ¶
func (q *Queries) UpdateUserPassword(ctx context.Context, arg *UpdateUserPasswordParams) error
type UpdateUserParams ¶
type User ¶
type User struct { ID int32 `db:"id" json:"id"` DisplayName string `db:"display_name" json:"display_name"` Username string `db:"username" json:"username"` Email string `db:"email" json:"email"` Password string `db:"password" json:"password"` CreatedAt pgtype.Timestamp `db:"created_at" json:"created_at"` UpdatedAt pgtype.Timestamp `db:"updated_at" json:"updated_at"` DeletedAt pgtype.Timestamp `db:"deleted_at" json:"deleted_at"` }
Click to show internal directories.
Click to hide internal directories.