twirp: github.com/twitchtv/twirp/hooks/statsd Index | Files

package statsd

import "github.com/twitchtv/twirp/hooks/statsd"

Index

Package Files

statsd.go

func NewStatsdServerHooks Uses

func NewStatsdServerHooks(stats Statter) *twirp.ServerHooks

NewStatsdServerHooks provides a twirp.ServerHooks struct which sends data to statsd.

type Statter Uses

type Statter interface {
    Inc(metric string, val int64, rate float32) error
    TimingDuration(metric string, val time.Duration, rate float32) error
}

Package statsd imports 4 packages (graph). Updated 2019-12-05. Refresh now. Tools for package owners.