null

package
v0.0.0-...-7a0dfb2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const BackendName = "null"

BackendName is the name of this backend.

Variables

This section is empty.

Functions

func NewClientFromViper

func NewClientFromViper(v *viper.Viper, logger logrus.FieldLogger, pool *transport.TransportPool) (gostatsd.Backend, error)

NewClientFromViper constructs a GraphiteClient object by connecting to an address.

Types

type Client

type Client struct{}

Client represents a discarding backend.

func NewClient

func NewClient() (*Client, error)

NewClient constructs a client object.

func (Client) Name

func (Client) Name() string

Name returns the name of the backend.

func (Client) SendEvent

func (Client) SendEvent(ctx context.Context, e *gostatsd.Event) error

SendEvent discards events.

func (Client) SendMetricsAsync

func (Client) SendMetricsAsync(ctx context.Context, metrics *gostatsd.MetricMap, cb gostatsd.SendCallback)

SendMetricsAsync discards the metrics in a MetricsMap.

Jump to

Keyboard shortcuts

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