metrics

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ResultSuccess represents the result of success.
	ResultSuccess = "success"
	// ResultError represents the result of error.
	ResultError = "error"
	// ResultUnknown represents the result of unknown.
	ResultUnknown = "unknown"
)

Variables

This section is empty.

Functions

func DurationInMicroseconds

func DurationInMicroseconds(start time.Time) float64

DurationInMicroseconds gets the time in microseconds.

func DurationInMilliseconds

func DurationInMilliseconds(start time.Time) float64

DurationInMilliseconds gets the time in milliseconds.

func DurationInSeconds

func DurationInSeconds(start time.Time) float64

DurationInSeconds gets the time in seconds.

func GetResultByError

func GetResultByError(err error) string

GetResultByError returns results according to the error

Types

This section is empty.

Jump to

Keyboard shortcuts

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