Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CounterMap ¶
type CounterMap struct {
// contains filtered or unexported fields
}
CounterMap is a map of counters keyed by tenant.
func NewCounterMap ¶
func NewCounterMap(metric string) *CounterMap
NewCounterMap creates new CounterMap for the given metric.
func (*CounterMap) Get ¶
func (cm *CounterMap) Get(at *auth.Token) *metrics.Counter
Get returns counter for the given at
func (*CounterMap) GetByTenant ¶
func (cm *CounterMap) GetByTenant(key TenantID) *metrics.Counter
GetByTenant returns counter for the given key.
Click to show internal directories.
Click to hide internal directories.