Documentation ¶
Index ¶
- func AsRoute(f any) any
- type AuthRoute
- type ExercisesCreateRoute
- type ExercisesDeleteByIdRoute
- type ExercisesGetByIdRoute
- type ExercisesGetRoute
- type ExercisesUpdateByIdRoute
- type HealthcheckRoute
- type ProfileStatisticGetRoute
- type ProfileStatisticWeightCreateRoute
- type ProfileStatisticWeightDeleteByIdRoute
- type ProfileStatisticWeightUpdateByIdRoute
- type ProfileWorkoutsCalendarGetByIdRoute
- type ProfileWorkoutsCalendarGetRoute
- type ProfileWorkoutsCalendarVisitRoute
- type ProfileWorkoutsCreateRoute
- type ProfileWorkoutsDeleteRoute
- type RegisterRoute
- type Route
- type WorkoutPlansCreateRoute
- type WorkoutPlansDeleteByIdRoute
- type WorkoutPlansGetByIdRoute
- type WorkoutPlansGetRoute
- type WorkoutPlansUpdateByIdRoute
- type WorkoutsCreateRoute
- type WorkoutsDeleteByIdRoute
- type WorkoutsGetByIdRoute
- type WorkoutsGetRoute
- type WorkoutsUpdateByIdRoute
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthRoute ¶
type AuthRoute struct {
// contains filtered or unexported fields
}
func NewAuthRoute ¶
func NewAuthRoute(userService *services.UsersService, tokenService *services.TokenService) *AuthRoute
func (*AuthRoute) NewRouteExecutor ¶
type ExercisesCreateRoute ¶
type ExercisesCreateRoute struct {
// contains filtered or unexported fields
}
func NewExercisesCreateRoute ¶
func NewExercisesCreateRoute(exercisesService *services.ExercisesService) *ExercisesCreateRoute
func (*ExercisesCreateRoute) Method ¶
func (*ExercisesCreateRoute) Method() string
func (*ExercisesCreateRoute) NewRouteExecutor ¶
func (a *ExercisesCreateRoute) NewRouteExecutor() (commands.ICommand, error)
func (*ExercisesCreateRoute) Pattern ¶
func (*ExercisesCreateRoute) Pattern() string
type ExercisesDeleteByIdRoute ¶
type ExercisesDeleteByIdRoute struct {
// contains filtered or unexported fields
}
func NewExercisesDeleteByIdRoute ¶
func NewExercisesDeleteByIdRoute(exercisesService *services.ExercisesService) *ExercisesDeleteByIdRoute
func (*ExercisesDeleteByIdRoute) Method ¶
func (*ExercisesDeleteByIdRoute) Method() string
func (*ExercisesDeleteByIdRoute) NewRouteExecutor ¶
func (a *ExercisesDeleteByIdRoute) NewRouteExecutor() (commands.ICommand, error)
func (*ExercisesDeleteByIdRoute) Pattern ¶
func (*ExercisesDeleteByIdRoute) Pattern() string
type ExercisesGetByIdRoute ¶
type ExercisesGetByIdRoute struct {
// contains filtered or unexported fields
}
func NewExercisesGetByIdRoute ¶
func NewExercisesGetByIdRoute(exercisesService *services.ExercisesService) *ExercisesGetByIdRoute
func (*ExercisesGetByIdRoute) Method ¶
func (*ExercisesGetByIdRoute) Method() string
func (*ExercisesGetByIdRoute) NewRouteExecutor ¶
func (a *ExercisesGetByIdRoute) NewRouteExecutor() (commands.ICommand, error)
func (*ExercisesGetByIdRoute) Pattern ¶
func (*ExercisesGetByIdRoute) Pattern() string
type ExercisesGetRoute ¶
type ExercisesGetRoute struct {
// contains filtered or unexported fields
}
func NewExercisesGetRoute ¶
func NewExercisesGetRoute(exercisesService *services.ExercisesService) *ExercisesGetRoute
func (*ExercisesGetRoute) Method ¶
func (*ExercisesGetRoute) Method() string
func (*ExercisesGetRoute) NewRouteExecutor ¶
func (a *ExercisesGetRoute) NewRouteExecutor() (commands.ICommand, error)
func (*ExercisesGetRoute) Pattern ¶
func (*ExercisesGetRoute) Pattern() string
type ExercisesUpdateByIdRoute ¶
type ExercisesUpdateByIdRoute struct {
// contains filtered or unexported fields
}
func NewExercisesUpdateByIdRoute ¶
func NewExercisesUpdateByIdRoute(exercisesService *services.ExercisesService) *ExercisesUpdateByIdRoute
func (*ExercisesUpdateByIdRoute) Method ¶
func (*ExercisesUpdateByIdRoute) Method() string
func (*ExercisesUpdateByIdRoute) NewRouteExecutor ¶
func (a *ExercisesUpdateByIdRoute) NewRouteExecutor() (commands.ICommand, error)
func (*ExercisesUpdateByIdRoute) Pattern ¶
func (*ExercisesUpdateByIdRoute) Pattern() string
type HealthcheckRoute ¶
type HealthcheckRoute struct {
// contains filtered or unexported fields
}
func NewHealthcheckRoute ¶
func NewHealthcheckRoute(store *infrastructure.Store, logger *zap.SugaredLogger) *HealthcheckRoute
func (*HealthcheckRoute) Method ¶
func (*HealthcheckRoute) Method() string
func (*HealthcheckRoute) NewRouteExecutor ¶
func (r *HealthcheckRoute) NewRouteExecutor() (commands.ICommand, error)
func (*HealthcheckRoute) Pattern ¶
func (*HealthcheckRoute) Pattern() string
type ProfileStatisticGetRoute ¶
type ProfileStatisticGetRoute struct {
// contains filtered or unexported fields
}
func NewProfileStatisticGetRoute ¶
func NewProfileStatisticGetRoute(userStatisticService *services.UserStatisticService) *ProfileStatisticGetRoute
func (*ProfileStatisticGetRoute) Method ¶
func (*ProfileStatisticGetRoute) Method() string
func (*ProfileStatisticGetRoute) NewRouteExecutor ¶
func (a *ProfileStatisticGetRoute) NewRouteExecutor() (commands.ICommand, error)
func (*ProfileStatisticGetRoute) Pattern ¶
func (*ProfileStatisticGetRoute) Pattern() string
type ProfileStatisticWeightCreateRoute ¶
type ProfileStatisticWeightCreateRoute struct {
// contains filtered or unexported fields
}
func NewProfileStatisticWeightCreateRoute ¶
func NewProfileStatisticWeightCreateRoute(userStatisticService *services.UserStatisticService) *ProfileStatisticWeightCreateRoute
func (*ProfileStatisticWeightCreateRoute) Method ¶
func (*ProfileStatisticWeightCreateRoute) Method() string
func (*ProfileStatisticWeightCreateRoute) NewRouteExecutor ¶
func (a *ProfileStatisticWeightCreateRoute) NewRouteExecutor() (commands.ICommand, error)
func (*ProfileStatisticWeightCreateRoute) Pattern ¶
func (*ProfileStatisticWeightCreateRoute) Pattern() string
type ProfileStatisticWeightDeleteByIdRoute ¶
type ProfileStatisticWeightDeleteByIdRoute struct {
// contains filtered or unexported fields
}
func NewProfileStatisticWeightDeleteByIdRoute ¶
func NewProfileStatisticWeightDeleteByIdRoute(userStatisticService *services.UserStatisticService) *ProfileStatisticWeightDeleteByIdRoute
func (*ProfileStatisticWeightDeleteByIdRoute) Method ¶
func (*ProfileStatisticWeightDeleteByIdRoute) Method() string
func (*ProfileStatisticWeightDeleteByIdRoute) NewRouteExecutor ¶
func (a *ProfileStatisticWeightDeleteByIdRoute) NewRouteExecutor() (commands.ICommand, error)
func (*ProfileStatisticWeightDeleteByIdRoute) Pattern ¶
func (*ProfileStatisticWeightDeleteByIdRoute) Pattern() string
type ProfileStatisticWeightUpdateByIdRoute ¶
type ProfileStatisticWeightUpdateByIdRoute struct {
// contains filtered or unexported fields
}
func NewProfileStatisticWeightUpdateByIdRoute ¶
func NewProfileStatisticWeightUpdateByIdRoute(userStatisticService *services.UserStatisticService) *ProfileStatisticWeightUpdateByIdRoute
func (*ProfileStatisticWeightUpdateByIdRoute) Method ¶
func (*ProfileStatisticWeightUpdateByIdRoute) Method() string
func (*ProfileStatisticWeightUpdateByIdRoute) NewRouteExecutor ¶
func (a *ProfileStatisticWeightUpdateByIdRoute) NewRouteExecutor() (commands.ICommand, error)
func (*ProfileStatisticWeightUpdateByIdRoute) Pattern ¶
func (*ProfileStatisticWeightUpdateByIdRoute) Pattern() string
type ProfileWorkoutsCalendarGetByIdRoute ¶
type ProfileWorkoutsCalendarGetByIdRoute struct {
// contains filtered or unexported fields
}
func NewProfileWorkoutsCalendarGetByIdRoute ¶
func NewProfileWorkoutsCalendarGetByIdRoute(calendarService *services.UserWorkoutsCalendarService) *ProfileWorkoutsCalendarGetByIdRoute
func (*ProfileWorkoutsCalendarGetByIdRoute) Method ¶
func (*ProfileWorkoutsCalendarGetByIdRoute) Method() string
func (*ProfileWorkoutsCalendarGetByIdRoute) NewRouteExecutor ¶
func (a *ProfileWorkoutsCalendarGetByIdRoute) NewRouteExecutor() (commands.ICommand, error)
func (*ProfileWorkoutsCalendarGetByIdRoute) Pattern ¶
func (*ProfileWorkoutsCalendarGetByIdRoute) Pattern() string
type ProfileWorkoutsCalendarGetRoute ¶
type ProfileWorkoutsCalendarGetRoute struct {
// contains filtered or unexported fields
}
func NewProfileWorkoutsCalendarGetRoute ¶
func NewProfileWorkoutsCalendarGetRoute(userWorkoutsCalendarService *services.UserWorkoutsCalendarService) *ProfileWorkoutsCalendarGetRoute
func (*ProfileWorkoutsCalendarGetRoute) Method ¶
func (*ProfileWorkoutsCalendarGetRoute) Method() string
func (*ProfileWorkoutsCalendarGetRoute) NewRouteExecutor ¶
func (a *ProfileWorkoutsCalendarGetRoute) NewRouteExecutor() (commands.ICommand, error)
func (*ProfileWorkoutsCalendarGetRoute) Pattern ¶
func (*ProfileWorkoutsCalendarGetRoute) Pattern() string
type ProfileWorkoutsCalendarVisitRoute ¶
type ProfileWorkoutsCalendarVisitRoute struct {
// contains filtered or unexported fields
}
func NewProfileWorkoutsCalendarVisitRoute ¶
func NewProfileWorkoutsCalendarVisitRoute(userWorkoutsCalendarService *services.UserWorkoutsCalendarService) *ProfileWorkoutsCalendarVisitRoute
func (*ProfileWorkoutsCalendarVisitRoute) Method ¶
func (*ProfileWorkoutsCalendarVisitRoute) Method() string
func (*ProfileWorkoutsCalendarVisitRoute) NewRouteExecutor ¶
func (a *ProfileWorkoutsCalendarVisitRoute) NewRouteExecutor() (commands.ICommand, error)
func (*ProfileWorkoutsCalendarVisitRoute) Pattern ¶
func (*ProfileWorkoutsCalendarVisitRoute) Pattern() string
type ProfileWorkoutsCreateRoute ¶
type ProfileWorkoutsCreateRoute struct {
// contains filtered or unexported fields
}
func NewProfileWorkoutsCreateRoute ¶
func NewProfileWorkoutsCreateRoute(userWorkoutsService *services.UserWorkoutsService) *ProfileWorkoutsCreateRoute
func (*ProfileWorkoutsCreateRoute) Method ¶
func (*ProfileWorkoutsCreateRoute) Method() string
func (*ProfileWorkoutsCreateRoute) NewRouteExecutor ¶
func (a *ProfileWorkoutsCreateRoute) NewRouteExecutor() (commands.ICommand, error)
func (*ProfileWorkoutsCreateRoute) Pattern ¶
func (*ProfileWorkoutsCreateRoute) Pattern() string
type ProfileWorkoutsDeleteRoute ¶
type ProfileWorkoutsDeleteRoute struct {
// contains filtered or unexported fields
}
func NewProfileWorkoutsDeleteRoute ¶
func NewProfileWorkoutsDeleteRoute(userWorkoutsService *services.UserWorkoutsService) *ProfileWorkoutsDeleteRoute
func (*ProfileWorkoutsDeleteRoute) Method ¶
func (*ProfileWorkoutsDeleteRoute) Method() string
func (*ProfileWorkoutsDeleteRoute) NewRouteExecutor ¶
func (a *ProfileWorkoutsDeleteRoute) NewRouteExecutor() (commands.ICommand, error)
func (*ProfileWorkoutsDeleteRoute) Pattern ¶
func (*ProfileWorkoutsDeleteRoute) Pattern() string
type RegisterRoute ¶
type RegisterRoute struct {
// contains filtered or unexported fields
}
func NewRegisterRoute ¶
func NewRegisterRoute(userService *services.UsersService, tokenService *services.TokenService, usersMetrics *metrics.UsersMetrics) *RegisterRoute
func (*RegisterRoute) Method ¶
func (*RegisterRoute) Method() string
func (*RegisterRoute) NewRouteExecutor ¶
func (a *RegisterRoute) NewRouteExecutor() (commands.ICommand, error)
func (*RegisterRoute) Pattern ¶
func (*RegisterRoute) Pattern() string
type WorkoutPlansCreateRoute ¶
type WorkoutPlansCreateRoute struct {
// contains filtered or unexported fields
}
func NewWorkoutPlansCreateRoute ¶
func NewWorkoutPlansCreateRoute(workoutPlansService *services.WorkoutPlansService) *WorkoutPlansCreateRoute
func (*WorkoutPlansCreateRoute) Method ¶
func (*WorkoutPlansCreateRoute) Method() string
func (*WorkoutPlansCreateRoute) NewRouteExecutor ¶
func (a *WorkoutPlansCreateRoute) NewRouteExecutor() (commands.ICommand, error)
func (*WorkoutPlansCreateRoute) Pattern ¶
func (*WorkoutPlansCreateRoute) Pattern() string
type WorkoutPlansDeleteByIdRoute ¶
type WorkoutPlansDeleteByIdRoute struct {
// contains filtered or unexported fields
}
func NewWorkoutPlansDeleteByIdRoute ¶
func NewWorkoutPlansDeleteByIdRoute(workoutPlansService *services.WorkoutPlansService) *WorkoutPlansDeleteByIdRoute
func (*WorkoutPlansDeleteByIdRoute) Method ¶
func (*WorkoutPlansDeleteByIdRoute) Method() string
func (*WorkoutPlansDeleteByIdRoute) NewRouteExecutor ¶
func (a *WorkoutPlansDeleteByIdRoute) NewRouteExecutor() (commands.ICommand, error)
func (*WorkoutPlansDeleteByIdRoute) Pattern ¶
func (*WorkoutPlansDeleteByIdRoute) Pattern() string
type WorkoutPlansGetByIdRoute ¶
type WorkoutPlansGetByIdRoute struct {
// contains filtered or unexported fields
}
func NewWorkoutPlansGetByIdRoute ¶
func NewWorkoutPlansGetByIdRoute(workoutPlansService *services.WorkoutPlansService) *WorkoutPlansGetByIdRoute
func (*WorkoutPlansGetByIdRoute) Method ¶
func (*WorkoutPlansGetByIdRoute) Method() string
func (*WorkoutPlansGetByIdRoute) NewRouteExecutor ¶
func (a *WorkoutPlansGetByIdRoute) NewRouteExecutor() (commands.ICommand, error)
func (*WorkoutPlansGetByIdRoute) Pattern ¶
func (*WorkoutPlansGetByIdRoute) Pattern() string
type WorkoutPlansGetRoute ¶
type WorkoutPlansGetRoute struct {
// contains filtered or unexported fields
}
func NewWorkoutPlansGetRoute ¶
func NewWorkoutPlansGetRoute(workoutPlansService *services.WorkoutPlansService) *WorkoutPlansGetRoute
func (*WorkoutPlansGetRoute) Method ¶
func (*WorkoutPlansGetRoute) Method() string
func (*WorkoutPlansGetRoute) NewRouteExecutor ¶
func (a *WorkoutPlansGetRoute) NewRouteExecutor() (commands.ICommand, error)
func (*WorkoutPlansGetRoute) Pattern ¶
func (*WorkoutPlansGetRoute) Pattern() string
type WorkoutPlansUpdateByIdRoute ¶
type WorkoutPlansUpdateByIdRoute struct {
// contains filtered or unexported fields
}
func NewWorkoutPlansUpdateByIdRoute ¶
func NewWorkoutPlansUpdateByIdRoute(workoutPlansService *services.WorkoutPlansService) *WorkoutPlansUpdateByIdRoute
func (*WorkoutPlansUpdateByIdRoute) Method ¶
func (*WorkoutPlansUpdateByIdRoute) Method() string
func (*WorkoutPlansUpdateByIdRoute) NewRouteExecutor ¶
func (a *WorkoutPlansUpdateByIdRoute) NewRouteExecutor() (commands.ICommand, error)
func (*WorkoutPlansUpdateByIdRoute) Pattern ¶
func (*WorkoutPlansUpdateByIdRoute) Pattern() string
type WorkoutsCreateRoute ¶
type WorkoutsCreateRoute struct {
// contains filtered or unexported fields
}
func NewWorkoutsCreateRoute ¶
func NewWorkoutsCreateRoute(workoutsService *services.WorkoutsService) *WorkoutsCreateRoute
func (*WorkoutsCreateRoute) Method ¶
func (*WorkoutsCreateRoute) Method() string
func (*WorkoutsCreateRoute) NewRouteExecutor ¶
func (a *WorkoutsCreateRoute) NewRouteExecutor() (commands.ICommand, error)
func (*WorkoutsCreateRoute) Pattern ¶
func (*WorkoutsCreateRoute) Pattern() string
type WorkoutsDeleteByIdRoute ¶
type WorkoutsDeleteByIdRoute struct {
// contains filtered or unexported fields
}
func NewWorkoutsDeleteByIdRoute ¶
func NewWorkoutsDeleteByIdRoute(workoutsService *services.WorkoutsService) *WorkoutsDeleteByIdRoute
func (*WorkoutsDeleteByIdRoute) Method ¶
func (*WorkoutsDeleteByIdRoute) Method() string
func (*WorkoutsDeleteByIdRoute) NewRouteExecutor ¶
func (a *WorkoutsDeleteByIdRoute) NewRouteExecutor() (commands.ICommand, error)
func (*WorkoutsDeleteByIdRoute) Pattern ¶
func (*WorkoutsDeleteByIdRoute) Pattern() string
type WorkoutsGetByIdRoute ¶
type WorkoutsGetByIdRoute struct {
// contains filtered or unexported fields
}
func NewWorkoutsGetByIdRoute ¶
func NewWorkoutsGetByIdRoute(workoutsService *services.WorkoutsService) *WorkoutsGetByIdRoute
func (*WorkoutsGetByIdRoute) Method ¶
func (*WorkoutsGetByIdRoute) Method() string
func (*WorkoutsGetByIdRoute) NewRouteExecutor ¶
func (a *WorkoutsGetByIdRoute) NewRouteExecutor() (commands.ICommand, error)
func (*WorkoutsGetByIdRoute) Pattern ¶
func (*WorkoutsGetByIdRoute) Pattern() string
type WorkoutsGetRoute ¶
type WorkoutsGetRoute struct {
// contains filtered or unexported fields
}
func NewWorkoutsGetRoute ¶
func NewWorkoutsGetRoute(workoutsService *services.WorkoutsService) *WorkoutsGetRoute
func (*WorkoutsGetRoute) Method ¶
func (*WorkoutsGetRoute) Method() string
func (*WorkoutsGetRoute) NewRouteExecutor ¶
func (a *WorkoutsGetRoute) NewRouteExecutor() (commands.ICommand, error)
func (*WorkoutsGetRoute) Pattern ¶
func (*WorkoutsGetRoute) Pattern() string
type WorkoutsUpdateByIdRoute ¶
type WorkoutsUpdateByIdRoute struct {
// contains filtered or unexported fields
}
func NewWorkoutsUpdateByIdRoute ¶
func NewWorkoutsUpdateByIdRoute(workoutsService *services.WorkoutsService) *WorkoutsUpdateByIdRoute
func (*WorkoutsUpdateByIdRoute) Method ¶
func (*WorkoutsUpdateByIdRoute) Method() string
func (*WorkoutsUpdateByIdRoute) NewRouteExecutor ¶
func (a *WorkoutsUpdateByIdRoute) NewRouteExecutor() (commands.ICommand, error)
func (*WorkoutsUpdateByIdRoute) Pattern ¶
func (*WorkoutsUpdateByIdRoute) Pattern() string
Source Files ¶
- auth_route.go
- exercises_create_route.go
- exercises_delete_by_id_route.go
- exercises_get_by_id_route.go
- exercises_get_route.go
- exercises_update_by_id_route.go
- healthcheck_route.go
- profile_statistic_get_route.go
- profile_statistic_weight_create_route.go
- profile_statistic_weight_delete_by_id_route.go
- profile_statistic_weight_update_by_id_route.go
- profile_workouts_calendar_get_by_id_route.go
- profile_workouts_calendar_get_route.go
- profile_workouts_calendar_visit_route.go
- profile_workouts_create_route.go
- profile_workouts_delete_route.go
- register_route.go
- route.go
- workout_plans_create_route.go
- workout_plans_delete_by_id_route.go
- workout_plans_get_by_id_route.go
- workout_plans_get_route.go
- workout_plans_update_by_id_route.go
- workouts_create_route.go
- workouts_delete_by_id_route.go
- workouts_get_by_id_route.go
- workouts_get_route.go
- workouts_update_by_id_route.go
Click to show internal directories.
Click to hide internal directories.