ginprom

package
v1.3.17 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GinPrometheus

type GinPrometheus struct {
	// contains filtered or unexported fields
}

GinPrometheus declare gin server for prometheus

func New

func New(e *gin.Engine, options ...Option) *GinPrometheus

New serve caller to create a GinPrometheus

func (*GinPrometheus) Middleware

func (gp *GinPrometheus) Middleware() gin.HandlerFunc

Middleware return middleware for gin

type Option

type Option func(*GinPrometheus)

Option declare GinPrometheus configuration

func Ignore

func Ignore(path ...string) Option

Ignore added ignore path

Jump to

Keyboard shortcuts

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