statsdclient

package
v0.0.0-...-d5a6f8d Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package statsdclient holds statsdclient related files

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StatsdClient

type StatsdClient struct {
	statsd.NoOpClient
	// contains filtered or unexported fields
}

StatsdClient is a statsd client for used for tests

func NewStatsdClient

func NewStatsdClient() *StatsdClient

NewStatsdClient returns a new StatsdClient

func (*StatsdClient) Count

func (s *StatsdClient) Count(name string, value int64, tags []string, _ float64) error

Count does nothing and returns nil

func (*StatsdClient) Flush

func (s *StatsdClient) Flush() error

Flush does nothing and returns nil

func (*StatsdClient) Gauge

func (s *StatsdClient) Gauge(name string, value float64, tags []string, _ float64) error

Gauge does nothing and returns nil

func (*StatsdClient) Get

func (s *StatsdClient) Get(key string) int64

Get return the count

func (*StatsdClient) GetByPrefix

func (s *StatsdClient) GetByPrefix(prefix string) map[string]int64

GetByPrefix return the count

Jump to

Keyboard shortcuts

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