cormetics

package
v0.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

type Metrics struct {
	Fields map[string]string
	// contains filtered or unexported fields
}

func CollectMetrics

func CollectMetrics(fields map[string]string) (*Metrics, error)

CollectMetrics creates or gets the Metrics Singleton, and starts the activation log writer. Provided fields will be added to the log.

func (*Metrics) AddField

func (j *Metrics) AddField(key string, description string) error

func (*Metrics) Collect

func (j *Metrics) Collect(result map[string]interface{})

func (*Metrics) Reset

func (j *Metrics) Reset()

func (*Metrics) Start

func (j *Metrics) Start()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL