Versions in this module Expand all Collapse all v1 v1.0.1 Nov 25, 2025 v1.0.0 Mar 9, 2025 Changes in this version + type DeleteUserParams struct + Id int + func (p DeleteUserParams) Validate() error + type GetSettingsParams struct + Id int + func (p GetSettingsParams) Validate() error + type GetUserParams struct + Id int + func (p GetUserParams) Validate() error + type GetUsersQuery struct + func (q GetUsersQuery) Validate() error + type PostgresUserStore struct + func NewPostgresUserStore(postgresDb *pgxpool.Pool, logger *slog.Logger) *PostgresUserStore + func (s *PostgresUserStore) CreateSettings(ctx context.Context, set *types.Settings) (types.Settings, error) + func (s *PostgresUserStore) CreateUser(ctx context.Context, u *types.User) (types.User, error) + func (s *PostgresUserStore) DeleteUser(ctx context.Context, userId int) (types.User, error) + func (s *PostgresUserStore) GetSettings(ctx context.Context, userId int) (types.Settings, error) + func (s *PostgresUserStore) GetUserByEmail(ctx context.Context, email string) (types.User, error) + func (s *PostgresUserStore) GetUserById(ctx context.Context, userId int) (types.User, error) + func (s *PostgresUserStore) GetUsers(ctx context.Context, options *types.GetUsersStoreOptions) ([]types.User, types.PaginationMetadata, error) + func (s *PostgresUserStore) UpdateSettings(ctx context.Context, set *types.Settings) (types.Settings, error) + func (s *PostgresUserStore) UpdateUserLoggedIn(ctx context.Context, userId int) (types.User, error) + func (s *PostgresUserStore) UpdateVerification(ctx context.Context, userId int) (types.User, error) + type UpdateSettingsParams struct + Id int + func (p UpdateSettingsParams) Validate() error + type UpdateSettingsPayload struct + Benchmark_id int + Reb_thresh_pct int + func (p UpdateSettingsPayload) Validate() error + type UpdateVerificationParams struct + Id int + func (p UpdateVerificationParams) Validate() error + type UserHandlerImpl struct + func NewUserHandler(userStore types.UserStore, benchmarkStore types.BenchmarkStore, ...) *UserHandlerImpl + func (h *UserHandlerImpl) DeleteUser(c fiber.Ctx) error + func (h *UserHandlerImpl) GetSettings(c fiber.Ctx) error + func (h *UserHandlerImpl) GetUser(c fiber.Ctx) error + func (h *UserHandlerImpl) GetUsers(c fiber.Ctx) error + func (h *UserHandlerImpl) UpdateSettings(c fiber.Ctx) error + func (h *UserHandlerImpl) UpdateVerification(c fiber.Ctx) error