diff --git a/apiresponse/apiresponse.go b/apiresponse/apiresponse.go index 0508b64..2114a9b 100644 --- a/apiresponse/apiresponse.go +++ b/apiresponse/apiresponse.go @@ -8,6 +8,14 @@ type Response struct { 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` type HealthGET struct { Response