Documentation ¶
Index ¶
- Variables
- func CreateKey(pv crypto.PrivateKey) *key.Key
- func PrintDangerMsg(format string, a ...interface{})
- func PrintErrorMsg(format string, a ...interface{})
- func PrintInfoMsg(format string, a ...interface{})
- func PrintJSONData(data []byte)
- func PrintJSONObject(obj interface{})
- func PrintLine()
- func PrintSuccessMsg(format string, a ...interface{})
- func PrintWarnMsg(format string, a ...interface{})
- func PromptInput(prompt string) string
- func PromptInputWithSuggestion(prompt, suggestion string) string
- func PromptPassphrase(prompt string, confirmation bool) string
- func PromptPrivateKey(promp string) (*key.Key, error)
- func TrapSignal(cleanupFunc func())
- func ZarbHomeDir() string
- func ZarbKeystoreDir() string
Constants ¶
This section is empty.
Variables ¶
View Source
var Stdin = newTerminalPrompter()
Stdin holds the stdin line reader (also using stdout for printing prompts). Only this reader may be used for input because it keeps an internal buffer. var
View Source
var ZARB = `` /* 567-byte string literal not displayed */
Functions ¶
func PrintDangerMsg ¶
func PrintDangerMsg(format string, a ...interface{})
func PrintErrorMsg ¶
func PrintErrorMsg(format string, a ...interface{})
func PrintInfoMsg ¶
func PrintInfoMsg(format string, a ...interface{})
func PrintJSONData ¶
func PrintJSONData(data []byte)
func PrintJSONObject ¶
func PrintJSONObject(obj interface{})
func PrintSuccessMsg ¶
func PrintSuccessMsg(format string, a ...interface{})
func PrintWarnMsg ¶
func PrintWarnMsg(format string, a ...interface{})
func PromptInputWithSuggestion ¶
Promptlabel prompts for an input string with a suggestion
func PromptPassphrase ¶
PromptPassphrase prompts the user for a passphrase. Set confirmation to true to require the user to confirm the passphrase.
func PromptPrivateKey ¶ added in v1.0.0
PromptPrivateKey prompts the user to enter the private key, validates the private key, displays the validator address and starts the node after confirmation
func TrapSignal ¶
func TrapSignal(cleanupFunc func())
TrapSignal traps SIGINT and SIGTERM and terminates the server correctly.
func ZarbHomeDir ¶
func ZarbHomeDir() string
func ZarbKeystoreDir ¶
func ZarbKeystoreDir() string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.