Documentation
¶
Index ¶
- type CountedUserDTO
- type SqlxRepository
- func (r *SqlxRepository) CreateUser(ctx context.Context, name string) (id uint64, err error)
- func (r *SqlxRepository) DeleteUser(ctx context.Context, id uint64) error
- func (r *SqlxRepository) GetUser(ctx context.Context, id uint64) (user models.User, found bool, err error)
- func (r *SqlxRepository) GetUsers(ctx context.Context, limit, offset uint64) ([]models.User, uint64, error)
- func (r *SqlxRepository) GetUsersByEvent(ctx context.Context, eventID, limit, offset uint64) ([]models.User, uint64, error)
- func (r *SqlxRepository) HealthCheck(ctx context.Context) error
- func (r *SqlxRepository) UpdateUser(ctx context.Context, user models.User) (found bool, err error)
- type UserDTO
- type UsersDTO
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CountedUserDTO ¶
type CountedUserDTO struct {
ID uint64 `db:"id"`
Name string `db:"name"`
TotalCount uint64 `db:"total_count"`
}
func (CountedUserDTO) ToModel ¶
func (dto CountedUserDTO) ToModel() models.User
type SqlxRepository ¶
type SqlxRepository struct {
// contains filtered or unexported fields
}
func (*SqlxRepository) CreateUser ¶
func (*SqlxRepository) DeleteUser ¶
func (r *SqlxRepository) DeleteUser(ctx context.Context, id uint64) error
func (*SqlxRepository) GetUsersByEvent ¶
func (*SqlxRepository) HealthCheck ¶
func (r *SqlxRepository) HealthCheck(ctx context.Context) error
func (*SqlxRepository) UpdateUser ¶
Click to show internal directories.
Click to hide internal directories.