config

package
v0.0.0-...-94b8695 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL