stats

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Kind

type Kind int
const (
	KindTotalConns   Kind = 1
	KindCurrentConns Kind = 2
	KindInputBytes   Kind = 3
	KindOutputBytes  Kind = 4
	KindTotalErrs    Kind = 5
)

type Stats

type Stats struct {
	// contains filtered or unexported fields
}

func (*Stats) Add

func (s *Stats) Add(kind Kind, n int64)

func (*Stats) Get

func (s *Stats) Get(kind Kind) uint64

func (*Stats) IsUpdated

func (s *Stats) IsUpdated() bool

type StatsEvent

type StatsEvent struct {
	Kind    string
	Service string
	Client  string

	TotalConns   uint64
	CurrentConns uint64
	InputBytes   uint64
	OutputBytes  uint64
	TotalErrs    uint64
}

func (StatsEvent) Type

func (StatsEvent) Type() observer.EventType

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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