Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterEvaluate ¶
func RegisterEvaluate(api huma.API) error
func RegisterHealhtz ¶
func RegisterHealhtz(api huma.API) error
func RegisterIndex ¶
func RegisterIndex(api huma.API) error
Types ¶
type EvaluateInput ¶
type EvaluateInput struct {
Body EvaluateInputBody
}
type EvaluateInputBody ¶
type EvaluateInputBody struct { Age int `json:"age" min:"4" example:"24" doc:"Age of the participant"` Gender string `json:"gender" enum:"female,male" example:"female" doc:"Biological sex of the participant"` Challenge string `json:"challenge" enum:"hfit4,hfit6" example:"hfit4" doc:"Type of challenge"` Exercises []EvaluateInputExercise `json:"exercises" doc:"Results of the exercises performed by the participant"` }
type EvaluateInputExercise ¶
type EvaluateOutput ¶
type EvaluateOutput struct {
Body EvaluateOutputBody
}
type EvaluateOutputBody ¶
type EvaluateOutputBody struct { Total float32 `json:"total" example:"101" doc:"Final score"` TotalMax float32 `json:"total_max" example:"140" doc:"Maximum score possible"` Exercises map[string]EvaluateOutputExercise `json:"exercises" doc:"Scores acheived on the exercises"` }
type EvaluateOutputExercise ¶
type HealhtzOutput ¶
type HealhtzOutput struct {
Body []byte `example:"Ok."`
}
type IndexOutput ¶
type IndexOutput struct {
Location string `header:"Location"`
}
Click to show internal directories.
Click to hide internal directories.