|
|
|
@ -38,6 +38,7 @@ type Manager interface {
|
|
|
|
|
|
|
|
|
|
// RegisterCounter registers a new counter to the manager. The identifier string must not be empty, and unique among other counters.
|
|
|
|
|
RegisterCounter(string) (Counter, error) |
|
|
|
|
UnregisterCounter(string) error |
|
|
|
|
// GetCounter returns a counter by its identifier.
|
|
|
|
|
GetCounter(string) Counter |
|
|
|
|
|
|
|
|
@ -87,6 +88,11 @@ func (NoopManager) RegisterCounter(string) (Counter, error) {
|
|
|
|
|
return nil, newError("not implemented") |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// UnregisterCounter implements Manager.
|
|
|
|
|
func (NoopManager) UnregisterCounter(string) error { |
|
|
|
|
return newError("not implemented") |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// GetCounter implements Manager.
|
|
|
|
|
func (NoopManager) GetCounter(string) Counter { |
|
|
|
|
return nil |
|
|
|
|