counter

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2026 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Counter

type Counter int64

Counter value

func (*Counter) Get

func (cn *Counter) Get() int64

Get value

func (*Counter) Inc

func (cn *Counter) Inc(v int64)

Inc - rement counter value

func (*Counter) IntPtr

func (cn *Counter) IntPtr() *int64

IntPtr returns the value type int64 pointer

func (*Counter) Set

func (cn *Counter) Set(v int64)

Set value

type ErrorCounter

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

ErrorCounter of errors

func (*ErrorCounter) Dec

func (cn *ErrorCounter) Dec()

Dec - rement counter value

func (*ErrorCounter) Do

func (cn *ErrorCounter) Do(inc bool)

Do counter incrementation

func (*ErrorCounter) Inc

func (cn *ErrorCounter) Inc()

Inc - rement counter value

func (*ErrorCounter) Next

func (cn *ErrorCounter) Next() bool

Next value

Jump to

Keyboard shortcuts

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