options

package
v0.0.0-...-165bc0d Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	STATUS_SUCCESS         = "success"
	STATUS_FAIL            = "fail"
	STATUS_ERROR           = "error"
	HISTOGRAM_EXEC_SECONDS = "exec_seconds"
)

Functions

This section is empty.

Types

type Option

type Option struct {
	Name   string
	Desc   string
	Labels map[string]string
	Value  float64
}

type WithOpt

type WithOpt func(opts *Option)

func WithDesc

func WithDesc(desc string) WithOpt

func WithLabel

func WithLabel(key, value string) WithOpt

func WithName

func WithName(name string) WithOpt

func WithValue

func WithValue(value float64) WithOpt

Jump to

Keyboard shortcuts

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