routes

package
v0.0.0-...-ff3b7a6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsRoute

func AsRoute(f any) any

AsRoute annotates the given constructor to state that it provides a route to the "routes" group.

Types

type AuthRoute

type AuthRoute struct {
	// contains filtered or unexported fields
}

func NewAuthRoute

func NewAuthRoute(userService *services.UsersService,
	tokenService *services.TokenService) *AuthRoute

func (*AuthRoute) Method

func (*AuthRoute) Method() string

func (*AuthRoute) NewRouteExecutor

func (a *AuthRoute) NewRouteExecutor() (commands.ICommand, error)

func (*AuthRoute) Pattern

func (*AuthRoute) Pattern() string

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) NewRouteExecutor

func (a *ProfileStatisticWeightCreateRoute) NewRouteExecutor() (commands.ICommand, error)

func (*ProfileStatisticWeightCreateRoute) Pattern

type ProfileStatisticWeightDeleteByIdRoute

type ProfileStatisticWeightDeleteByIdRoute struct {
	// contains filtered or unexported fields
}

func NewProfileStatisticWeightDeleteByIdRoute

func NewProfileStatisticWeightDeleteByIdRoute(userStatisticService *services.UserStatisticService) *ProfileStatisticWeightDeleteByIdRoute

func (*ProfileStatisticWeightDeleteByIdRoute) Method

func (*ProfileStatisticWeightDeleteByIdRoute) NewRouteExecutor

func (*ProfileStatisticWeightDeleteByIdRoute) Pattern

type ProfileStatisticWeightUpdateByIdRoute

type ProfileStatisticWeightUpdateByIdRoute struct {
	// contains filtered or unexported fields
}

func NewProfileStatisticWeightUpdateByIdRoute

func NewProfileStatisticWeightUpdateByIdRoute(userStatisticService *services.UserStatisticService) *ProfileStatisticWeightUpdateByIdRoute

func (*ProfileStatisticWeightUpdateByIdRoute) Method

func (*ProfileStatisticWeightUpdateByIdRoute) NewRouteExecutor

func (*ProfileStatisticWeightUpdateByIdRoute) Pattern

type ProfileWorkoutsCalendarGetByIdRoute

type ProfileWorkoutsCalendarGetByIdRoute struct {
	// contains filtered or unexported fields
}

func NewProfileWorkoutsCalendarGetByIdRoute

func NewProfileWorkoutsCalendarGetByIdRoute(calendarService *services.UserWorkoutsCalendarService) *ProfileWorkoutsCalendarGetByIdRoute

func (*ProfileWorkoutsCalendarGetByIdRoute) Method

func (*ProfileWorkoutsCalendarGetByIdRoute) NewRouteExecutor

func (*ProfileWorkoutsCalendarGetByIdRoute) Pattern

type ProfileWorkoutsCalendarGetRoute

type ProfileWorkoutsCalendarGetRoute struct {
	// contains filtered or unexported fields
}

func NewProfileWorkoutsCalendarGetRoute

func NewProfileWorkoutsCalendarGetRoute(userWorkoutsCalendarService *services.UserWorkoutsCalendarService) *ProfileWorkoutsCalendarGetRoute

func (*ProfileWorkoutsCalendarGetRoute) Method

func (*ProfileWorkoutsCalendarGetRoute) NewRouteExecutor

func (a *ProfileWorkoutsCalendarGetRoute) NewRouteExecutor() (commands.ICommand, error)

func (*ProfileWorkoutsCalendarGetRoute) Pattern

type ProfileWorkoutsCalendarVisitRoute

type ProfileWorkoutsCalendarVisitRoute struct {
	// contains filtered or unexported fields
}

func NewProfileWorkoutsCalendarVisitRoute

func NewProfileWorkoutsCalendarVisitRoute(userWorkoutsCalendarService *services.UserWorkoutsCalendarService) *ProfileWorkoutsCalendarVisitRoute

func (*ProfileWorkoutsCalendarVisitRoute) Method

func (*ProfileWorkoutsCalendarVisitRoute) NewRouteExecutor

func (a *ProfileWorkoutsCalendarVisitRoute) NewRouteExecutor() (commands.ICommand, error)

func (*ProfileWorkoutsCalendarVisitRoute) Pattern

type ProfileWorkoutsCreateRoute

type ProfileWorkoutsCreateRoute struct {
	// contains filtered or unexported fields
}

func NewProfileWorkoutsCreateRoute

func NewProfileWorkoutsCreateRoute(userWorkoutsService *services.UserWorkoutsService) *ProfileWorkoutsCreateRoute

func (*ProfileWorkoutsCreateRoute) Method

func (*ProfileWorkoutsCreateRoute) NewRouteExecutor

func (a *ProfileWorkoutsCreateRoute) NewRouteExecutor() (commands.ICommand, error)

func (*ProfileWorkoutsCreateRoute) Pattern

type ProfileWorkoutsDeleteRoute

type ProfileWorkoutsDeleteRoute struct {
	// contains filtered or unexported fields
}

func NewProfileWorkoutsDeleteRoute

func NewProfileWorkoutsDeleteRoute(userWorkoutsService *services.UserWorkoutsService) *ProfileWorkoutsDeleteRoute

func (*ProfileWorkoutsDeleteRoute) Method

func (*ProfileWorkoutsDeleteRoute) NewRouteExecutor

func (a *ProfileWorkoutsDeleteRoute) NewRouteExecutor() (commands.ICommand, error)

func (*ProfileWorkoutsDeleteRoute) Pattern

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 Route

type Route interface {
	Method() string
	Pattern() string
	NewRouteExecutor() (commands.ICommand, error)
}

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) NewRouteExecutor

func (a *WorkoutPlansDeleteByIdRoute) NewRouteExecutor() (commands.ICommand, error)

func (*WorkoutPlansDeleteByIdRoute) Pattern

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) NewRouteExecutor

func (a *WorkoutPlansUpdateByIdRoute) NewRouteExecutor() (commands.ICommand, error)

func (*WorkoutPlansUpdateByIdRoute) Pattern

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL