null

package
v0.0.0-...-170def7 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2018 License: MIT Imports: 3 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) (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