Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeAndValidate ¶ added in v0.1.4
HTTP handler helper
func NewAdminAccessLogMiddleware ¶
func NewAdminAccessLogMiddleware() middleware.Middleware
Types ¶
type AdminAPI ¶
type AdminAPI struct {
// contains filtered or unexported fields
}
AdminAPI represents the administrative API for managing the load balancer.
func NewAdminAPI ¶
func NewAdminAPI( manager *service.Manager, cfg *config.APIConfig, authService *auth_service.AuthService, logger *zap.Logger, ) *AdminAPI
NewAdminAPI creates a new instance of AdminAPI with the provided service manager and configuration. It initializes the HTTP mux and registers all API routes.
type AdminAccessLogMiddleware ¶
type AdminAccessLogMiddleware struct{}
func (*AdminAccessLogMiddleware) Middleware ¶
func (m *AdminAccessLogMiddleware) Middleware(next http.Handler) http.Handler
type BackendRequest ¶ added in v0.1.4
type BackendRequest struct { URL string `json:"url"` Weight int `json:"weight"` MaxConnections int32 `json:"maxConnections"` SkipTLSVerify bool `json:"skipTLSVerify"` HealthCheck *config.HealthCheckConfig `json:"healthCheck"` }
func (BackendRequest) Validate ¶ added in v0.1.4
func (r BackendRequest) Validate() []ValidationError
type BackendStatus ¶
type ValidationError ¶ added in v0.1.4
func (ValidationError) String ¶ added in v0.1.4
func (e ValidationError) String() string
type Validator ¶ added in v0.1.4
type Validator interface {
Validate() []ValidationError
}
Click to show internal directories.
Click to hide internal directories.