count

package
v1.1.1-beta.5 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Counts

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

Counts holds the numbers of context with timeout set. adapto clears the internal Counts when new context is created by adapto and when context created by adapto exceeds deadline.

func NewCounts

func NewCounts() Counts

func (*Counts) Clear

func (c *Counts) Clear()

func (*Counts) DeadlineExceeded

func (c *Counts) DeadlineExceeded() uint32

func (*Counts) OnDeadlineExceeded

func (c *Counts) OnDeadlineExceeded()

func (*Counts) OnNew

func (c *Counts) OnNew()

func (*Counts) Ratio

func (c *Counts) Ratio() float32

func (*Counts) Total

func (c *Counts) Total() uint32

Jump to

Keyboard shortcuts

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