How should I write a Handler wrapper for pure GET operation that has no any parameters?
All Handler wrappers seems to need to wrap onto something, of what the user is requesting:
|
type ScheduleTrainingHandler decorator.CommandHandler[ScheduleTraining] |
Then passes on such user requests to the Handler in the end.
However, for a pure GET operation that has no any parameters, like /health that I need to return CPU & Mem info, how should I write a Handler wrapper for it please?
How should I write a Handler wrapper for pure GET operation that has no any parameters?
All Handler wrappers seems to need to wrap onto something, of what the user is requesting:
wild-workouts-go-ddd-example/internal/trainings/app/command/schedule_training.go
Line 24 in 56ef6d5
Then passes on such user requests to the Handler in the end.
However, for a pure GET operation that has no any parameters, like
/healththat I need to return CPU & Mem info, how should I write a Handler wrapper for it please?