frequency

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2026 License: Apache-2.0 Imports: 8 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(pubsub pubsub.Client, name string, window time.Duration) (*Counter, error)

NewCounter creates a new cross-process counter. The `name` must be less than 31 characters.

func (*Counter) Close

func (c *Counter) Close() error

func (*Counter) Get

func (c *Counter) Get(entity string) (int, error)

func (*Counter) Increment

func (c *Counter) Increment(entity string) error

Jump to

Keyboard shortcuts

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