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 (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.
Click to show internal directories.
Click to hide internal directories.