/usr/share/gocode/src/github.com/raintank/met/dogstatsd/count.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 15 16 17 18 | package dogstatsd
import "github.com/raintank/met"
type Count struct {
key string
backend Backend
}
func (b Backend) NewCount(key string) met.Count {
c := Count{key, b}
c.Inc(0)
return c
}
func (c Count) Inc(val int64) {
c.backend.client.Count(c.key, val, []string{}, 1)
}
|