Help us shape the future of Go! Take the 2026 Go Developer Survey

thresholds

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFlags

func AddFlags(flagP *pflag.FlagSet, ths *[]ThresholdOption)

Types

type ThresholdOption

type ThresholdOption struct {
	Th          *ThresholdWrapper
	FlagString  string
	Description string
	Default     ThresholdWrapper
}

type ThresholdWrapper

type ThresholdWrapper struct {
	Th    check.Threshold
	IsSet bool
}

func (*ThresholdWrapper) Set

func (t *ThresholdWrapper) Set(foo string) error

func (*ThresholdWrapper) String

func (t *ThresholdWrapper) String() string

func (*ThresholdWrapper) Type

func (t *ThresholdWrapper) Type() string

type Thresholds

type Thresholds struct {
	Warn ThresholdWrapper
	Crit ThresholdWrapper
}

Jump to

Keyboard shortcuts

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