stats

package
v0.0.0-...-c8b884f Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 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 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