stats

package
v1.7.7 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Source

type Source struct {
	LastPacket time.Time `json:"last_packet"`
	Packets    int       `json:"packets"`
	// contains filtered or unexported fields
}

type Stats

type Stats struct {
	Sources    map[string]*Source `json:"sources"`
	Keys       int                `json:"keys"`
	IndexStats map[string]string  `json:"index_stats"`
	DataStats  map[string]string  `json:"data_stats"`
	// contains filtered or unexported fields
}

func NewStats

func NewStats() *Stats

func (*Stats) RegisterPacket

func (st *Stats) RegisterPacket(agent string, t time.Time, count int)

Jump to

Keyboard shortcuts

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