multi

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory struct {
	// contains filtered or unexported fields
}

Factory is a metrics factory that dispatches to multiple metrics backends.

func New

func New(factories ...metrics.Factory) *Factory

New creates a new multi.Factory that will dispatch to multiple metrics backends.

func (*Factory) Counter

func (f *Factory) Counter(name string, tags map[string]string) metrics.Counter

Counter implements metrics.Factory interface

func (*Factory) Gauge

func (f *Factory) Gauge(name string, tags map[string]string) metrics.Gauge

Gauge implements metrics.Factory interface

func (*Factory) Namespace

func (f *Factory) Namespace(name string, tags map[string]string) metrics.Factory

Namespace implements metrics.Factory interface

func (*Factory) Timer

func (f *Factory) Timer(name string, tags map[string]string) metrics.Timer

Timer implements metrics.Factory interface

Jump to

Keyboard shortcuts

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