api

package
v2.2.11 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2020 License: MIT Imports: 17 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBuilder

func NewBuilder(staticConfig static.Configuration) func(*runtime.Configuration) http.Handler

NewBuilder returns a http.Handler builder based on runtime.Configuration.

Types

type DashboardHandler

type DashboardHandler struct {
	Assets *assetfs.AssetFS
}

DashboardHandler expose dashboard routes.

func (DashboardHandler) Append

func (g DashboardHandler) Append(router *mux.Router)

Append add dashboard routes on a router.

type DebugHandler

type DebugHandler struct{}

DebugHandler expose debug routes.

func (DebugHandler) Append

func (g DebugHandler) Append(router *mux.Router)

Append add debug routes on a router.

type Handler

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

Handler serves the configuration and status of Traefik on API endpoints.

func New

func New(staticConfig static.Configuration, runtimeConfig *runtime.Configuration) *Handler

New returns a Handler defined by staticConfig, and if provided, by runtimeConfig. It finishes populating the information provided in the runtimeConfig.

type RunTimeRepresentation

type RunTimeRepresentation struct {
	Routers     map[string]*runtime.RouterInfo        `json:"routers,omitempty"`
	Middlewares map[string]*runtime.MiddlewareInfo    `json:"middlewares,omitempty"`
	Services    map[string]*serviceInfoRepresentation `json:"services,omitempty"`
	TCPRouters  map[string]*runtime.TCPRouterInfo     `json:"tcpRouters,omitempty"`
	TCPServices map[string]*runtime.TCPServiceInfo    `json:"tcpServices,omitempty"`
	UDPRouters  map[string]*runtime.UDPRouterInfo     `json:"udpRouters,omitempty"`
	UDPServices map[string]*runtime.UDPServiceInfo    `json:"udpServices,omitempty"`
}

RunTimeRepresentation is the configuration information exposed by the API handler.

Jump to

Keyboard shortcuts

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