package
0.0.0-20190301173735-832449cb7b36
Repository: https://github.com/gladiusio/gladius-cli.git
Documentation: pkg.go.dev
# Functions
AskPassphrase - prompt user for passphrase.
CachePassphrase - cache passphrase so user's don't have to retype it every time in the same command.
CheckBalance - check SYMBOL balance of account DEPRECATED.
CheckTx - check status of tx.
ControlDaemonHandler - handler for the API responses.
GetIP - Retrieve the current machine's external IPv4 address using multiple ip API's.
HandleError - custom error handler for the CLI.
NewPassphrase - prompts user for new passphrase and confirms it.
OpenAccount - open/unlock an account.
PrintError - print and logs ReponseError's.
SendRequest - custom function to make sending api requests less of a pain in the arse.
SetLogLevel - Sets the appropriate logging level.
SetupLogger - Clears the previous file, and creates log file ready for writing.
Version - print version of each module.
WaitForTx - wait for a tx on the blockchain to complete.
# Variables
LogFile - Where the logs are stored.
LogLevel - What kind of logs to show (1 = Debug and above, 2 = Info and above, 3 = Warnings and above, 4 = Fatal).
RequestTimeout - Request timeout in seconds.
# Structs
APIResponse - standard response from the control daemon api.
ErrorResponse - custom error struct.