webinflux

package module
v0.0.0-...-44503d3 Latest Latest
Warning

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

Go to latest
Published: May 31, 2018 License: MIT Imports: 9 Imported by: 0

README

webinflux

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item struct {
	Name        string
	ItemType    string
	Requests    uint64
	Bytes       uint64
	StatusCodes map[int]uint64
	Timer       metrics.Timer
}

type Middleware

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

func NewWebInflux

func NewWebInflux(name, influxdb_url, influxdb_database, influxdb_username, influxdb_password string, influxdb_tags map[string]string, urlMetricList map[string]bool) (*Middleware, error)

func (*Middleware) ServeHTTP

func (m *Middleware) ServeHTTP(rw web.ResponseWriter, req *web.Request, next web.NextMiddlewareFunc)

func (*Middleware) Snapshot

func (m *Middleware) Snapshot() []Item

Jump to

Keyboard shortcuts

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