metrics

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 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 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