mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00

for i in github.com/BurntSushi/toml github.com/coreos/go-etcd/etcd github.com/coreos/go-log/log github.com/gorilla/context github.com/rcrowley/go-metrics bitbucket.org/kardianos/osext github.com/coreos/go-systemd/journal github.com/coreos/raft code.google.com/p/goprotobuf/proto ; do goven -copy -rewrite $i; done
26 lines
411 B
Go
26 lines
411 B
Go
package metrics
|
|
|
|
import (
|
|
"io"
|
|
|
|
gometrics "github.com/coreos/etcd/third_party/github.com/rcrowley/go-metrics"
|
|
)
|
|
|
|
type nilBucket struct{}
|
|
|
|
func (nmb nilBucket) Dump(w io.Writer) {
|
|
return
|
|
}
|
|
|
|
func (nmb nilBucket) Timer(name string) Timer {
|
|
return gometrics.NilTimer{}
|
|
}
|
|
|
|
func (nmf nilBucket) Gauge(name string) Gauge {
|
|
return gometrics.NilGauge{}
|
|
}
|
|
|
|
func (nmf nilBucket) Publish(string) error {
|
|
return nil
|
|
}
|