From 75267a1746bcd3dcba5260a1732fafc570b91ad4 Mon Sep 17 00:00:00 2001 From: Max Lerebourg Date: Thu, 29 Sep 2022 09:23:29 +0200 Subject: [PATCH] fix lint --- bouncer.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bouncer.go b/bouncer.go index c7b48aa..d9cc640 100644 --- a/bouncer.go +++ b/bouncer.go @@ -144,6 +144,7 @@ func New(ctx context.Context, next http.Handler, config *Config, name string) (h } // TODO the serve HTTP should be split as it's too long. +// ServeHTTP principal function of plugin func (a *Bouncer) ServeHTTP(rw http.ResponseWriter, req *http.Request) { if !a.enabled { log.Printf("Crowdsec Bouncer not enabled") @@ -244,7 +245,7 @@ func (a *Bouncer) ServeHTTP(rw http.ResponseWriter, req *http.Request) { // Decision: Body returned from Crowdsec LAPI. type Decision struct { - Id int `json:"id"` + ID int `json:"id"` Origin string `json:"origin"` Type string `json:"type"` Scope string `json:"scope"`