Ajouter interface Responder
This commit is contained in:
parent
c22c20b306
commit
30b47d2792
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue