package
0.0.0-20210530232945-81ab215e69dc
Repository: https://github.com/openware/irix.git
Documentation: pkg.go.dev
# Functions
ConfirmECS confirms that the encryption confirmation string is found.
ConfirmSalt checks whether the encrypted data contains a salt.
DecryptConfigFile decrypts configuration data with the supplied key and returns the un-encrypted data as a byte array with an error.
DefaultFilePath returns the default config file path MacOS/Linux: $HOME/.gocryptotrader/config.json or config.dat Windows: %APPDATA%\GoCryptoTrader\config.json or config.dat Helpful for printing application usage.
EncryptConfigFile encrypts configuration data that is parsed in with a key and returns it as a byte array with an error.
GetAndMigrateDefaultPath returns the target config file migrating it from the old default location to new one, if it was implicitly loaded from a default location and wasn't already in the correct 'new' default location.
GetConfig returns a pointer to a configuration object.
GetFilePath returns the desired config file or the default config file name and whether it was loaded from a default location (rather than explicitly specified).
PromptForConfigKey asks for configuration key if initialSetup is true, the password needs to be repeated.
ReadConfig verifies and checks for encryption and loads the config from a JSON object.
Unencrypted provides the default key provider implementation for unencrypted files.
# Constants
Constants here define unset default values displayed in the config.json file.
Constants declared here are filename strings and test strings.
Constants declared here are filename strings and test strings.
Constants declared here are filename strings and test strings.
Constants here define unset default values displayed in the config.json file.
Constants here define unset default values displayed in the config.json file.
Constants here define unset default values displayed in the config.json file.
Constants here define unset default values displayed in the config.json file.
EncryptConfirmString has a the general confirmation string to allow us to see if the file is correctly encrypted.
Constants declared here are filename strings and test strings.
Constants here hold some messages.
Constants here hold some messages.
Constants here hold some messages.
Constants here hold some messages.
Constants here hold some messages.
Constants here hold some messages.
Constants here hold some messages.
Constants here hold some messages.
Constants here hold some messages.
Constants here hold some messages.
Constants declared here are filename strings and test strings.
Constants declared here are filename strings and test strings.
SaltPrefix string.
SaltRandomLength is the number of random bytes to append after the prefix string.
Constants declared here are filename strings and test strings.
Constants here hold some messages.
Constants here hold some messages.
Constants here hold some messages.
Constants here hold some messages.
Constants here define unset default values displayed in the config.json file.
# Variables
Variables here are used for configuration.
# Structs
APIConfig stores the exchange API config.
APICredentialsConfig stores the API credentials.
APICredentialsValidatorConfig stores the API credentials validator settings.
APIEndpointsConfig stores the API endpoint addresses.
BankTransaction defines a related banking transaction.
CommunicationsConfig holds all the information needed for each enabled communication package.
Config is the overarching object that holds all the information for prestart management of Portfolio, Communications, Webserver and Enabled Exchanges.
ConnectionMonitorConfig defines the connection monitor variables to ensure that there is internet connectivity.
CryptocurrencyProvider defines coinmarketcap tools.
CurrencyConfig holds all the information needed for currency related manipulation.
CurrencyPairFormatConfig stores the users preferred currency pair display.
DepcrecatedRPCConfig stores the deprecatedRPCConfig settings.
ExchangeConfig holds all the information needed for each enabled Exchange.
FeaturesConfig stores the exchanges supported and enabled features.
FeaturesEnabledConfig stores the exchanges enabled features.
FeaturesSupportedConfig stores the exchanges supported features.
GRPCConfig stores the gRPC settings.
NTPClientConfig defines a network time protocol configuration to allow for positive and negative differences.
OrderbookConfig stores the orderbook configuration variables.
Post holds the bot configuration data.
Profiler defines the profiler configuration to enable pprof.
RemoteControlConfig stores the RPC services config.
SlackConfig holds all variables to start and run the Slack package.
SMSContact stores the SMS contact info.
SMSGlobalConfig structure holds all the variables you need for instant messaging and broadcast used by SMSGlobal.
SMTPConfig holds all variables to start and run the SMTP package.
TelegramConfig holds all variables to start and run the Telegram package.
WebserverConfig stores the old webserver config.
WebsocketRPCConfig stores the websocket config info.