counter

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 License: Apache-2.0 Imports: 1 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 uint64

Counter can be incremeneted and read. It is safe to use concurrently.

func (*Counter) Inc

func (c *Counter) Inc() uint64

Inc can be used to increment the value.

func (*Counter) Reset

func (c *Counter) Reset()

Reset resets the counter to 0.

func (*Counter) Value

func (c *Counter) Value() uint64

Value returns the value of the counter.

Jump to

Keyboard shortcuts

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