mirror of
https://github.com/maxlerebourg/crowdsec-bouncer-traefik-plugin.git
synced 2026-07-21 11:38:59 +02:00
💄 fix lint
This commit is contained in:
+2
-2
@@ -1,4 +1,4 @@
|
|||||||
package crowdsec_bouncer_traefik_plugin
|
package crowdsec_bouncer_traefik_plugin //nolint:revive,stylecheck
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
@@ -36,7 +36,7 @@ func TestServeHTTP(t *testing.T) {
|
|||||||
|
|
||||||
func TestNew(t *testing.T) {
|
func TestNew(t *testing.T) {
|
||||||
type args struct {
|
type args struct {
|
||||||
ctx context.Context
|
ctx context.Context //nolint:containedctx
|
||||||
next http.Handler
|
next http.Handler
|
||||||
config *configuration.Config
|
config *configuration.Config
|
||||||
name string
|
name string
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ import (
|
|||||||
logger "github.com/maxlerebourg/crowdsec-bouncer-traefik-plugin/pkg/logger"
|
logger "github.com/maxlerebourg/crowdsec-bouncer-traefik-plugin/pkg/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Enums for crowdsec mode
|
// Enums for crowdsec mode.
|
||||||
const (
|
const (
|
||||||
StreamMode = "stream"
|
StreamMode = "stream"
|
||||||
LiveMode = "live"
|
LiveMode = "live"
|
||||||
|
|||||||
Reference in New Issue
Block a user