Documentation ¶
Index ¶
- type Router
- func (r *Router) Config(cn *c.Config) *Router
- func (r *Router) HealthFunc(f func() bool) *Router
- func (r *Router) Logger(l *logrus.Logger) *Router
- func (r *Router) Mux(m *web.Mux) *Router
- func (r *Router) StatusFunc(f func() map[string]interface{}) *Router
- func (r *Router) Version(v interface{}) *Router
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 (*Router) HealthFunc ¶
Set /health route handler
func (*Router) StatusFunc ¶
Set /status route handler
Click to show internal directories.
Click to hide internal directories.