admin

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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.Config, authService *auth_service.AuthService) *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.

func (*AdminAPI) Handler

func (a *AdminAPI) Handler() http.Handler

Handler returns the HTTP handler for the AdminAPI, wrapped with necessary middleware.

type AdminAccessLogMiddleware

type AdminAccessLogMiddleware struct{}

func (*AdminAccessLogMiddleware) Middleware

func (m *AdminAccessLogMiddleware) Middleware(next http.Handler) http.Handler

type BackendStatus

type BackendStatus struct {
	URL         string `json:"url"`
	Alive       bool   `json:"alive"`
	Connections int32  `json:"connections"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL