Ajouter interface Responder

This commit is contained in:
Victor Lacasse-Beaudoin 2023-09-16 23:21:27 -04:00
parent c22c20b306
commit 30b47d2792

View file

@ -8,6 +8,14 @@ type Response struct {
StatusCode int StatusCode int
} }
type Responder interface {
Respond() Responder
}
func (r Response) Respond() Responder {
return r
}
// HealthGET is the response type for `GET /v:version/health/ http/1.1` // HealthGET is the response type for `GET /v:version/health/ http/1.1`
type HealthGET struct { type HealthGET struct {
Response Response