counter

package
v1.5.0-alpha12 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 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 struct {
	// contains filtered or unexported fields
}

func NewCounter

func NewCounter(max uint64) Counter

func (*Counter) Current

func (c *Counter) Current() uint64

func (*Counter) Dec

func (c *Counter) Dec(by uint64)

func (*Counter) HasSpaceFor

func (c *Counter) HasSpaceFor(i uint64) bool

func (*Counter) Inc

func (c *Counter) Inc(by uint64)

func (*Counter) IsFull

func (c *Counter) IsFull() bool

func (*Counter) Reset

func (c *Counter) Reset(max uint64)

Jump to

Keyboard shortcuts

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