sharded_counter

package
Version: v0.0.0-...-9224e62 Latest Latest
Warning

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

Go to latest
Published: May 30, 2017 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