api

package
v1.7.16 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2019 License: MIT Imports: 14 Imported by: 0

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) AddRoutes

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

AddRoutes add dashboard routes on a router

type DebugHandler

type DebugHandler struct{}

DebugHandler expose debug routes

func (DebugHandler) AddRoutes

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

AddRoutes add debug routes on a router

type Handler

type Handler struct {
	EntryPoint            string `description:"EntryPoint" export:"true"`
	Dashboard             bool   `description:"Activate dashboard" export:"true"`
	Debug                 bool   `export:"true"`
	CurrentConfigurations *safe.Safe
	Statistics            *types.Statistics          `description:"Enable more detailed statistics" export:"true"`
	Stats                 *thoas_stats.Stats         `json:"-"`
	StatsRecorder         *middlewares.StatsRecorder `json:"-"`
	DashboardAssets       *assetfs.AssetFS           `json:"-"`
}

Handler expose api routes

func (Handler) AddRoutes

func (p Handler) AddRoutes(router *mux.Router)

AddRoutes add api routes on a router

Jump to

Keyboard shortcuts

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