tg_prom

package
v0.0.0-...-d21987e Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package tg_prom implements middleware for prometheus metrics.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Middleware

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

Middleware is prometheus metrics middleware for Telegram.

func New

func New() *Middleware

New initializes and returns new prometheus middleware.

func (Middleware) Handle

func (m Middleware) Handle(next tg.Invoker) telegram.InvokeFunc

Handle implements telegram.Middleware.

func (Middleware) Metrics

func (m Middleware) Metrics() []prometheus.Collector

Metrics returns slice of provided prometheus metrics.

Jump to

Keyboard shortcuts

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