/usr/share/gocode/src/github.com/raintank/met/statsd/init.go is in golang-github-raintank-met-dev 0.0~git20161103.0.05a94bb-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | package statsd
import "gopkg.in/alexcesaro/statsd.v1"
type Backend struct {
client *statsd.Client
}
// note: library does not auto add ending dot to prefix.
func New(enabled bool, addr, prefix string) (Backend, error) {
client, err := statsd.New(addr, statsd.WithPrefix(prefix), statsd.Mute(!enabled))
b := Backend{client}
return b, err
}
|