api

package
v2.0.0-alpha1+incompat... Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2019 License: MIT Imports: 15 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

This section is empty.

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 {
	EntryPoint            string
	Dashboard             bool
	Debug                 bool
	CurrentConfigurations *safe.Safe
	Statistics            *types.Statistics
	Stats                 *thoasstats.Stats
	// StatsRecorder         *middlewares.StatsRecorder // FIXME stats
	DashboardAssets *assetfs.AssetFS
}

Handler expose api routes

func (Handler) Append

func (h Handler) Append(router *mux.Router)

Append add api routes on a router

type MiddlewareRepresentation

type MiddlewareRepresentation struct {
	*config.Middleware
	ID string `json:"id"`
}

MiddlewareRepresentation extended version of a middleware configuration with an ID

type ProviderRepresentation

type ProviderRepresentation struct {
	Routers     []ResourceIdentifier `json:"routers,omitempty"`
	Middlewares []ResourceIdentifier `json:"middlewares,omitempty"`
	Services    []ResourceIdentifier `json:"services,omitempty"`
}

ProviderRepresentation a provider with resource identifiers

type ResourceIdentifier

type ResourceIdentifier struct {
	ID   string `json:"id"`
	Path string `json:"path"`
}

ResourceIdentifier a resource identifier

type RouterRepresentation

type RouterRepresentation struct {
	*config.Router
	ID string `json:"id"`
}

RouterRepresentation extended version of a router configuration with an ID

type ServiceRepresentation

type ServiceRepresentation struct {
	*config.Service
	ID string `json:"id"`
}

ServiceRepresentation extended version of a service configuration with an ID

Jump to

Keyboard shortcuts

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