Documentation ¶
Overview ¶
Package router has the default routes information
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRouter ¶
func NewRouter(deps *service.Dependencies, registry *prometheus.Registry) *mux.Router
NewRouter takes in handler Dependencies and returns mux.Router with default routes and if debug mode is enabled then it also adds pprof routes. It also, adds a PathPrefix to catch all route if config.DataSource().PathPrefix is set
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.