memory

package
v0.78.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const ClientType = "memory"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*Client) Close

func (c *Client) Close() error

Close implements metrics.Client.Close

func (*Client) Count

func (c *Client) Count(name string, value int64, tags []string) error

Count implements metrics.Client.Count

func (*Client) Gauge

func (c *Client) Gauge(name string, value float64, tags []string) error

Gauge implements metrics.Client.Gauge

func (*Client) Timing

func (c *Client) Timing(name string, value time.Duration, tags []string) error

Timing implements metrics.Client.Timing

type CountRecord

type CountRecord struct {
	Name  string
	Value int64
	Tags  []string
}

CountRecord is a record of a call to Count

type GaugeRecord

type GaugeRecord struct {
	Name  string
	Value float64
	Tags  []string
}

GaugeRecord is a record of a call to Gauge

type TimingRecord

type TimingRecord struct {
	Name  string
	Value time.Duration
	Tags  []string
}

TimingRecord is a record of a call to Timing

Jump to

Keyboard shortcuts

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