Config holds the config for an Manager instance. It holds config related to loading per-tenant config.
| 36 | // Config holds the config for an Manager instance. |
| 37 | // It holds config related to loading per-tenant config. |
| 38 | type Config struct { |
| 39 | ReloadPeriod time.Duration `yaml:"period" category:"advanced"` |
| 40 | // LoadPath contains the path to the runtime config files or HTTP URLs. |
| 41 | // Requires a non-empty value |
| 42 | LoadPath flagext.StringSliceCSV `yaml:"file"` |
| 43 | Preprocessor Preprocessor `yaml:"-"` |
| 44 | Loader Loader `yaml:"-"` |
| 45 | |
| 46 | // Configurations related to fetching runtime configurations from HTTP URLs rather than local files. |
| 47 | HTTPClientTimeout time.Duration `yaml:"http_client_timeout" category:"advanced"` |
| 48 | HTTPClientClusterValidation clusterutil.ClusterValidationConfig `yaml:"http_client_cluster_validation" category:"advanced"` |
| 49 | // HTTPClientDisableKeepAlives disables HTTP keep-alives for the runtime config HTTP client. |
| 50 | HTTPClientDisableKeepAlives bool `yaml:"http_client_disable_keep_alives" category:"advanced"` |
| 51 | } |
| 52 | |
| 53 | // RegisterFlagsWithPrefix registers flags under the specified prefix, which could be empty. |
| 54 | // If a non-empty prefix is provided, it's expected to end with a dot. |
nothing calls this directly
no outgoing calls
no test coverage detected