Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ErrGroup ¶
type ErrGroup struct {
// contains filtered or unexported fields
}
ErrGroup accumulates multiple errors and produces single error message.
type PromDuration ¶ added in v1.63.0
type PromDuration struct {
// contains filtered or unexported fields
}
PromDuration is Prometheus duration.
func NewPromDuration ¶ added in v1.63.0
func NewPromDuration(d time.Duration) PromDuration
NewPromDuration returns PromDuration for given d.
func (*PromDuration) Duration ¶ added in v1.63.0
func (pd *PromDuration) Duration() time.Duration
Duration returns duration for pd.
func (PromDuration) MarshalYAML ¶ added in v1.63.0
func (pd PromDuration) MarshalYAML() (interface{}, error)
MarshalYAML implements yaml.Marshaler interface.
func (*PromDuration) UnmarshalYAML ¶ added in v1.63.0
func (pd *PromDuration) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML implements yaml.Unmarshaler interface.
Click to show internal directories.
Click to hide internal directories.