Help us shape the future of Go! Take the 2026 Go Developer Survey

metrics

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Recorder

type Recorder interface {
	AddExtensionIntegerValue(key string, value int)
	AddExtensionStringValue(key string, value string)
	AddExtensionBoolValue(key string, value bool)
}

Recorder is satisfied by analytics.Analytics.

type RecorderFake

type RecorderFake struct {
	IntValues    map[string]int
	StringValues map[string]string
	BoolValues   map[string]bool
}

RecorderFake is a simple in-memory Recorder for use in tests.

func (*RecorderFake) AddExtensionBoolValue

func (r *RecorderFake) AddExtensionBoolValue(key string, value bool)

func (*RecorderFake) AddExtensionIntegerValue

func (r *RecorderFake) AddExtensionIntegerValue(key string, value int)

func (*RecorderFake) AddExtensionStringValue

func (r *RecorderFake) AddExtensionStringValue(key string, value string)

Jump to

Keyboard shortcuts

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