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 }
Click to show internal directories.
Click to hide internal directories.