router

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg config.Config, masterDb, slaveDb *gorm.DB, masterRedis, slaveRedis redis.Cmdable) *echo.Echo

New creates all the routes.

Types

type Metrics

type Metrics struct {
	ReqQPS      *prometheus.CounterVec
	ReqDuration *prometheus.HistogramVec
}

Metrics keeps echo Prometheus metrics.

Jump to

Keyboard shortcuts

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