metrics

package
v0.0.0-...-3a65669 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2015 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadContext

func LoadContext() error

LoadContext loads the context from config

Types

type Context

type Context struct {
	Metrics    *gmetrics.Metrics
	Middleware *mmw.Middleware
	MapSink    *mapsink.MapSink
	StatsdSink *gmetrics.StatsdSink
}

Context contains information necessary to add time and count metrics to routes, show collected metrics, or emit custom metrics from within a route

func GetContext

func GetContext() *Context

GetContext retrieves the context, loading if it has not yet

func NewContext

func NewContext(apiConfig *config.Metrics) (*Context, error)

NewContext creates a new context from the config

Jump to

Keyboard shortcuts

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