counter

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Counter

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

func NewCounter added in v0.10.0

func NewCounter(v uint64) Counter

func (*Counter) Decrement

func (c *Counter) Decrement(amount ...uint64) error

func (Counter) Format added in v0.10.0

func (c Counter) Format(f fmt.State, r rune)

func (*Counter) Increment

func (c *Counter) Increment(amount ...uint64) error

func (*Counter) Read

func (c *Counter) Read() uint64

func (*Counter) Set added in v0.10.0

func (c *Counter) Set(val uint64)

Jump to

Keyboard shortcuts

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