util

package
v0.0.0-...-43b7830 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Meter

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

func NewMeter

func NewMeter(name string,
	rateBucketLen int,
	rateBucketDuration time.Duration,
	inflightBucketLen int,
	inflightBucketDuration time.Duration,
) *Meter

func (*Meter) AddN

func (m *Meter) AddN(n int64)

func (*Meter) AvgInflight

func (m *Meter) AvgInflight() float64

func (*Meter) Count

func (m *Meter) Count() int64

func (*Meter) CurrentInflight

func (m *Meter) CurrentInflight() int32

func (*Meter) EndOne

func (m *Meter) EndOne()

func (*Meter) MaxInflight

func (m *Meter) MaxInflight() int32

func (*Meter) Rate

func (m *Meter) Rate() float64

func (*Meter) Start

func (m *Meter) Start()

func (*Meter) StartOne

func (m *Meter) StartOne()

func (*Meter) Stop

func (m *Meter) Stop()

Jump to

Keyboard shortcuts

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