sharded_counter

package
v0.0.0-...-1fac7cf Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Count

func Count(ctx context.Context, name string) (int, error)

Count retrieves the value of the named counter.

func IncreaseShards

func IncreaseShards(ctx 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 Increment

func Increment(ctx context.Context, name string) error

Increment increments the named counter.

Types

type Counter

type Counter struct {
	Count int
}

[START struct]

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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