Documentation ¶
Overview ¶
Package measure provides a Datastore wrapper that records metrics using github.com/codahale/metrics.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatastoreCloser ¶
type DatastoreCloser interface {
datastore.Datastore
Close() error
}
func New ¶
func New(prefix string, ds datastore.Datastore) DatastoreCloser
New wraps the datastore, providing metrics on the operations. The metrics are registered with names starting with prefix and a dot.
If prefix is not unique, New will panic. Call Close to release the prefix.
Click to show internal directories.
Click to hide internal directories.