go_monitoring_routes

package module
v0.0.0-...-8aaa0ee Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2017 License: MIT Imports: 7 Imported by: ? 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 Router

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

func NewRouter

func NewRouter() *Router

func (*Router) Config

func (r *Router) Config(cn *c.Config) *Router

Set /config route handler

func (*Router) HealthFunc

func (r *Router) HealthFunc(f func() bool) *Router

Set /health route handler

func (*Router) Logger

func (r *Router) Logger(l *logrus.Logger) *Router

Set /debug route handler

func (*Router) Mux

func (r *Router) Mux(m *web.Mux) *Router

Set mux for router

func (*Router) StatusFunc

func (r *Router) StatusFunc(f func() map[string]interface{}) *Router

Set /status route handler

func (*Router) Version

func (r *Router) Version(v interface{}) *Router

Set /version route handler

Jump to

Keyboard shortcuts

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