Documentation ¶
Index ¶
Constants ¶
View Source
const ( PacketResultParseError = "parse_error" PacketResultRouteNotFound = "route_not_found" PacketResultOk = "ok" )
Packet result labels
View Source
const Namespace = "disp"
Namespace is the metrics namespace for the dispatcher.
Variables ¶
View Source
var (
// M exposes all the initialized metrics for this package.
M = newMetrics()
)
Functions ¶
This section is empty.
Types ¶
type IncomingPacket ¶
type IncomingPacket struct {
Result string
}
IncomingPacket contains the labels for incoming packet metrics.
func (IncomingPacket) Labels ¶
func (l IncomingPacket) Labels() []string
Labels returns the list of labels.
func (IncomingPacket) Values ¶
func (l IncomingPacket) Values() []string
Values returns the label values in the order defined by Labels.
Click to show internal directories.
Click to hide internal directories.