stat

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Not deprecated since still used in other metrics
	NoSuchKey = "noKey"

	// Deprecated due to complications
	HasValue = "hasValue"
	CacheHit = "cacheHit"

	CacheCollision = "collision"
	CacheExpired   = "expired"
	LocalHasValue  = "localHasValue"
	LocalNoSuchKey = "localNoKey"

	L1NoSuchKey = "L1NoKey"
	L1HasValue  = "L1HasValue"
	L2NoSuchKey = "L2NoKey"
	L1Copy      = "L1Copy"

	// Aerospike Errors - still complicated
	Timeout = "timeout"
	Down    = "down"
)
View Source
const (
	ErrorKey = "error"
	// Context errors
	Canceled         = "canceled"
	DeadlineExceeded = "deadlineExceeded"
)

Variables

This section is empty.

Functions

func NewCache

func NewCache() counter.Provider

func NewStore

func NewStore() counter.Provider

func TestMapping added in v0.9.0

func TestMapping(t *testing.T, builder func() counter.Provider)

TestMapping checks to ensure that a standard 1-to-1 mapping between keys and values exists.

Types

type Values

type Values []interface{}

Values is a utility to pass multiple events to gmetric.

func NewValues

func NewValues() *Values

func (*Values) Append

func (v *Values) Append(item interface{})

func (*Values) AppendError added in v0.9.0

func (v *Values) AppendError(err error)

func (*Values) Values

func (v *Values) Values() []interface{}

Jump to

Keyboard shortcuts

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