Skip to main content

Module duration_string

Module duration_string 

Source
Expand description

A duration configuration value compatible with the Agent.

The Agent loads configuration via spf13/viper, which uses spf13/cast to coerce YAML/JSON/env values into Go’s time.Duration. DurationString reproduces that coercion so ADP accepts the same inputs and interprets them the same way.

Structs§

DurationString
A duration value that deserializes from the formats accepted by the Agent’s configuration loader.

Enums§

ParseDurationError
Error returned when a duration value cannot be parsed.