router

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: MIT Imports: 9 Imported by: 0

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.

Jump to

Keyboard shortcuts

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