Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶
func Initialize(agentFlags *ClientFlags) error
Types ¶
type ClientFlags ¶
type ClientFlags struct { Address string `env:"ADDRESS" json:"address"` ReportInterval int `env:"REPORT_INTERVAL" json:"report_interval"` PollInterval int `env:"POLL_INTERVAL" json:"poll_interval"` HashKey string `env:"KEY" json:"hash_key"` RateLimit int `env:"RATE_LIMIT" json:"rate_limit"` MemProfile string `env:"MEM_PROFILE" json:"mem_profile"` CryptoKey string `env:"CRYPTO_KEY" json:"crypto_key"` ExchangeMode string `env:"EXCHANGE_MODE" json:"exchange_mode"` Config string `env:"CONFIG" json:"config"` }
func ReadConfig ¶
func ReadConfig() (*ClientFlags, error)
Click to show internal directories.
Click to hide internal directories.