stats

package
v0.11.15 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const STATS_PATH string = "/stats"

Variables

This section is empty.

Functions

This section is empty.

Types

type ProtocolStats

type ProtocolStats struct {
	Invalid map[string]map[string]int64 `json:"invalid"`
	Valid   map[string]map[string]int64 `json:"valid"`
	// contains filtered or unexported fields
}

func BuildProtocolStats

func BuildProtocolStats() *ProtocolStats

func (*ProtocolStats) Build

func (ps *ProtocolStats) Build()

func (*ProtocolStats) IncrementInvalid

func (ps *ProtocolStats) IncrementInvalid(event *envelope.EventMeta, count int64)

func (*ProtocolStats) IncrementValid

func (ps *ProtocolStats) IncrementValid(event *envelope.EventMeta, count int64)

Jump to

Keyboard shortcuts

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