{"modulePath":"github.com/mirovskyi/traefik","version":"v2.0.0-beta1.0.20190806192659-88ebac942ed8+incompatible","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package api\n\n## Types\n\n```go\ntype DashboardHandler struct {\n\tAssets *assetfs.AssetFS\n}\n```\nDashboardHandler expose dashboard routes\n\n```go\nfunc (g DashboardHandler) Append(router *mux.Router)\n```\nAppend add dashboard routes on a router\n\n```go\ntype DebugHandler struct{}\n```\nDebugHandler expose debug routes\n\n```go\nfunc (g DebugHandler) Append(router *mux.Router)\n```\nAppend add debug routes on a router\n\n```go\ntype Handler struct {\n\t// contains filtered or unexported fields\n}\n```\nHandler serves the configuration and status of Traefik on API endpoints.\n\n```go\nfunc New(staticConfig static.Configuration, runtimeConfig *runtime.Configuration) *Handler\n```\nNew returns a Handler defined by staticConfig, and if provided, by runtimeConfig. It finishes populating the information provided in the runtimeConfig.\n\n```go\nfunc (h Handler) Append(router *mux.Router)\n```\nAppend add api routes on a router\n\n```go\ntype RunTimeRepresentation struct {\n\tRouters     map[string]*runtime.RouterInfo        `json:\"routers,omitempty\"`\n\tMiddlewares map[string]*runtime.MiddlewareInfo    `json:\"middlewares,omitempty\"`\n\tServices    map[string]*serviceInfoRepresentation `json:\"services,omitempty\"`\n\tTCPRouters  map[string]*runtime.TCPRouterInfo     `json:\"tcpRouters,omitempty\"`\n\tTCPServices map[string]*runtime.TCPServiceInfo    `json:\"tcpServices,omitempty\"`\n}\n```\nRunTimeRepresentation is the configuration information exposed by the API handler.\n\n","path":"github.com/mirovskyi/traefik/pkg/api","name":"api","synopsis":"","isRedistributable":true}
