counter

package
v0.0.0-...-3322d40 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2015 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Count

func Count(c context.Context, name string) (int64, error)

Count retrieves the value of the named counter.

func Delete

func Delete(c context.Context, name string) error

Delete purges the named counter.

func IncreaseShards

func IncreaseShards(c context.Context, name string, n int) error

IncreaseShards increases the number of shards for the named counter to n. It will never decrease the number of shards.

func IncrementBy

func IncrementBy(c context.Context, name string, n int64) error

IncrementBy increments the named counter by n.

Types

This section is empty.

Jump to

Keyboard shortcuts

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