ginprom

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2021 License: AGPL-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 struct

func New

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

New 构造器

func (*GinPrometheus) Middleware

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

Middleware 返回中间件

type Option

type Option func(*GinPrometheus)

Option 可配置参数

func Ignore

func Ignore(path ...string) Option

Ignore 添加忽略的路径

Jump to

Keyboard shortcuts

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