package
Version:
v0.3.3
Opens a new window with list of versions in this module.
Published: Oct 5, 2025
License: AGPL-3.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package metrics provides the metrics for the application.
IncAllowed increments the request allowed count.
IncDenied increments the request denied count.
IncInvalid increments the request invalid count.
Prometheus returns metrics formatted in Prometheus exposition format.
RequestCount contains the request count.
type RequestCountSnapshot struct {
Allowed uint64 `json:"allowed"`
Denied uint64 `json:"denied"`
Invalid uint64 `json:"invalid"`
Total uint64 `json:"total"`
}
RequestCountSnapshot contains the snapshot of the request count.
Snapshot contains the snapshot of the metrics.
Get returns a snapshot of the metrics.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.