util

package
v0.0.0-...-035f276 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDurationMilliseconds

func GetDurationMilliseconds(startTime time.Time) int

GetDurationMilliseconds returns the duration between startTime and currentTime in milliseconds as int. Example calling: startTime := Time.Now().UTC() util.GetDurationMilliseconds(startTime)

Types

type ErrorEncounteredMetric

type ErrorEncounteredMetric struct {
	// contains filtered or unexported fields
}

ErrorEncounteredMetric implementation of metric.IMetric, for error encountered metric

func NewErrorEncounteredMetric

func NewErrorEncounteredMetric(err error, context string) *ErrorEncounteredMetric

NewErrorEncounteredMetric Cto'r for ErrorEncounteredMetric

func (*ErrorEncounteredMetric) MetricDimension

func (m *ErrorEncounteredMetric) MetricDimension() []metric.Dimension

func (*ErrorEncounteredMetric) MetricName

func (m *ErrorEncounteredMetric) MetricName() string

Jump to

Keyboard shortcuts

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