Versions in this module Expand all Collapse all v1 v1.5.3 Dec 20, 2018 Changes in this version + func NewAdminHandler(prefix, appName string, routes ...RouteConfig) http.Handler + func SetupAdminHandlerHTTPRouter(router HTTPRouter, prefix, name string, routeConfigs ...RouteConfig) + func SetupAdminHandlerMux(mux *http.ServeMux, prefix, name string, routeConfigs ...RouteConfig) + type BuildInfo struct + BuildTime string + GitHash string + Version string + type HTTPRouter interface + Handler func(method, path string, handler http.Handler) + type MetricsRegistry interface + GetOrRegister func(string, interface{}) interface{} + Register func(string, interface{}) error + RunHealthchecks func() + UnregisterAll func() + type Route struct + Description string + Handler http.Handler + Method string + Path string + type RouteConfig struct + func Describe(desc string, rc RouteConfig) RouteConfig + func RequireAuth(user, pass string, configs ...RouteConfig) RouteConfig + func WithBuildInfo(buildInfo BuildInfo) RouteConfig + func WithDefaults() RouteConfig + func WithEnvironmentVariables() RouteConfig + func WithForceGC() RouteConfig + func WithGCStats() RouteConfig + func WithGenericValue(path string, value interface{}) RouteConfig + func WithGetHandler(path string, handler http.Handler) RouteConfig + func WithGetHandlerFunc(path string, handler http.HandlerFunc) RouteConfig + func WithHandler(method, path string, handler http.Handler) RouteConfig + func WithHandlerFunc(method, path string, handler http.HandlerFunc) RouteConfig + func WithHeapDump() RouteConfig + func WithMetrics(registry MetricsRegistry) RouteConfig + func WithPProfHandlers() RouteConfig + func WithPingPong() RouteConfig + func WithRedirect(from, to string) RouteConfig + func (rc RouteConfig) Describe(description string) RouteConfig + func (rc RouteConfig) Wildcard(wildcard bool) RouteConfig