Documentation ¶
Index ¶
Constants ¶
View Source
const ( Namespace = "spacemesh" ResultLabel = "result" )
Variables ¶
View Source
var Enabled = false
Functions ¶
func StartCollectingMetrics ¶
func StartCollectingMetrics(metricsPort int)
Types ¶
type Counter ¶
func NewCounter ¶
type Histogram ¶
func NewHistogram ¶
type MeteredCache ¶
type MeteredCache struct {
// contains filtered or unexported fields
}
func NewMeteredCache ¶
func NewMeteredCache(cache Cache, subsystem, name, help string, labels []string) *MeteredCache
func (*MeteredCache) Add ¶
func (m *MeteredCache) Add(key, value interface{}) bool
func (*MeteredCache) Get ¶
func (m *MeteredCache) Get(key interface{}) (value interface{}, ok bool)
Click to show internal directories.
Click to hide internal directories.