refactor: clean up code to pass go lint test

This commit is contained in:
Jonas Kaninda
2024-11-15 08:57:27 +01:00
parent 28b7643f0c
commit db590a2cfc
10 changed files with 20 additions and 47 deletions

View File

@@ -19,13 +19,9 @@ package pkg
import (
"context"
"github.com/gorilla/mux"
"time"
)
type Config struct {
file string
}
type BasicRuleMiddleware struct {
Username string `yaml:"username"`
Password string `yaml:"password"`
@@ -122,24 +118,16 @@ type GatewayServer struct {
middlewares []Middleware
}
type ProxyRoute struct {
path string
rewrite string
destination string
backends []string
healthCheck RouteHealthCheck
path string
rewrite string
destination string
backends []string
//healthCheck RouteHealthCheck
methods []string
cors Cors
disableHostFording bool
insecureSkipVerify bool
}
type RoutePath struct {
route Route
path string
rules []string
middlewares []Middleware
router *mux.Router
}
type HealthCheckRoute struct {
DisableRouteHealthCheckError bool
Routes []Route