handlers

package
v0.0.0-...-cdda5c5 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	// contains filtered or unexported fields
}

func NewApp

func NewApp(lbUpdater services.LBUpdater, logger *zap.Logger) *App

func (*App) DeleteLB

func (app *App) DeleteLB(w http.ResponseWriter, r *http.Request)

func (*App) UpdateLB

func (app *App) UpdateLB(w http.ResponseWriter, r *http.Request)

func (*App) WriteJSONErr

func (app *App) WriteJSONErr(w http.ResponseWriter, statusCode int, err error)

func (*App) WriteJSONResponse

func (app *App) WriteJSONResponse(w http.ResponseWriter, statusCode int, resp any)

type DeleteRequest

type DeleteRequest struct {
	BackendName string `json:"backendName"`
}

type JSONErr

type JSONErr struct {
	Err string `json:"err"`
}

type JSONOK

type JSONOK struct {
}

type UpdateRequest

type UpdateRequest struct {
	BackendName                string            `json:"backendName"`
	LBPort                     int               `json:"lbPort"`
	LBProtocol                 string            `json:"lbProtocol"`
	UpstreamServers            []services.Server `json:"upstreamServers"`
	ProxyTimeoutSeconds        int               `json:"proxyTimeoutSeconds"`
	ProxyConnectTimeoutSeconds int               `json:"proxyConnectTimeoutSeconds"`
}

Jump to

Keyboard shortcuts

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