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: 0

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