From 30b47d279280eb24b231ba5a55a9beef42e39314 Mon Sep 17 00:00:00 2001 From: Victor Lacasse-Beaudoin Date: Sat, 16 Sep 2023 23:21:27 -0400 Subject: [PATCH] Ajouter interface Responder --- apiresponse/apiresponse.go | 8 ++++++++ 1 file changed, 8 insertions(+) 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