Discover Packages
github.com/gennadyterekhov/metrics-storage
internal
agent
config
package
Version:
v0.0.0-...-7c0796b
Opens a new window with list of versions in this module.
Published: Aug 19, 2024
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Config struct {
Addr string `json:"address"`
IsGzip bool
ReportInterval int `json:"report_interval"`
PollInterval int `json:"poll_interval"`
IsBatch bool
PayloadSignatureKey string
SimultaneousRequestsLimit int
PublicKeyFilePath string `json:"crypto_key"`
}
New gets config from these places, each overwriting the previous one
- config file (path taken from CONFIG env var or -config flag)
- cli flags
- env vars
Source Files
¶
Click to show internal directories.
Click to hide internal directories.