stats

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStats

func NewStats(resetTraffic bool) stats.Stats

Types

type Stats

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

func (*Stats) Add

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

func (*Stats) Get

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

func (*Stats) IsUpdated

func (s *Stats) IsUpdated() bool

func (*Stats) Reset

func (s *Stats) Reset()

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