Documentation
¶
Index ¶
- func NewUserRepo(s *Storage) entities.UserRepo
- type CreateUserParams
- type CreateUserRow
- type DBTX
- type DatabaseError
- type GetUserByEmailRow
- type GetUserByNicknameRow
- type InternalServerError
- type ListUsersParams
- type ListUsersRow
- type Queries
- func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) (CreateUserRow, error)
- func (q *Queries) DeleteUser(ctx context.Context, id uuid.UUID) error
- func (q *Queries) GetUserByEmail(ctx context.Context, email pgtype.Text) (GetUserByEmailRow, error)
- func (q *Queries) GetUserByNickname(ctx context.Context, nickname pgtype.Text) (GetUserByNicknameRow, error)
- func (q *Queries) ListUsers(ctx context.Context, arg ListUsersParams) ([]ListUsersRow, error)
- func (q *Queries) UpdateUser(ctx context.Context, arg UpdateUserParams) error
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type Storage
- type UpdateUserParams
- type Users
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewUserRepo ¶
Types ¶
type CreateUserParams ¶
type CreateUserRow ¶
type DatabaseError ¶
func (*DatabaseError) Error ¶
func (e *DatabaseError) Error() string
func (*DatabaseError) Unwrap ¶
func (e *DatabaseError) Unwrap() error
type GetUserByEmailRow ¶
type GetUserByNicknameRow ¶
type InternalServerError ¶
type InternalServerError struct {
Err error
}
func (*InternalServerError) Error ¶
func (e *InternalServerError) Error() string
func (*InternalServerError) Unwrap ¶
func (e *InternalServerError) Unwrap() error
type ListUsersParams ¶
type ListUsersRow ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateUser ¶
func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) (CreateUserRow, error)
func (*Queries) GetUserByEmail ¶
func (*Queries) GetUserByNickname ¶
func (*Queries) ListUsers ¶
func (q *Queries) ListUsers(ctx context.Context, arg ListUsersParams) ([]ListUsersRow, error)
func (*Queries) UpdateUser ¶
func (q *Queries) UpdateUser(ctx context.Context, arg UpdateUserParams) error
type UpdateUserParams ¶
Click to show internal directories.
Click to hide internal directories.