Documentation
¶
Index ¶
- Variables
- func CreateNode(numValidators int, testnet bool, workingDir string, mnemonic string, ...) (validatorAddrs []string, rewardAddrs []string, err error)
- func FatalErrorCheck(err error)
- func GetKeys(workingDir string, passwordFetcher func(*wallet.Wallet) (string, bool)) (*genesis.Genesis, *config.Config, []crypto.Signer, []crypto.Address, ...)
- func PactusConfigPath(home string) string
- func PactusDefaultWalletPath(home string) string
- func PactusGenesisPath(home string) string
- func PactusHomeDir() string
- func PrintErrorMsg(format string, a ...interface{})
- func PrintInfoMsg(format string, a ...interface{})
- func PrintInfoMsgBold(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 PromptConfirm(label string) bool
- func PromptInput(label string) string
- func PromptInputWithRange(label string, def, min, max int) int
- func PromptInputWithSuggestion(label, suggestion string) string
- func PromptPassword(label string, confirmation bool) string
- func TrapSignal(cleanupFunc func())
Constants ¶
This section is empty.
Variables ¶
View Source
var Pactus = ``
Functions ¶
func CreateNode ¶ added in v0.10.0
func FatalErrorCheck ¶ added in v0.10.0
func FatalErrorCheck(err error)
func PactusConfigPath ¶
func PactusDefaultWalletPath ¶
func PactusGenesisPath ¶
func PactusHomeDir ¶
func PactusHomeDir() string
func PrintErrorMsg ¶
func PrintErrorMsg(format string, a ...interface{})
func PrintInfoMsg ¶
func PrintInfoMsg(format string, a ...interface{})
func PrintInfoMsgBold ¶ added in v0.10.0
func PrintInfoMsgBold(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 PromptConfirm ¶
PromptConfirm prompts user to confirm the operation.
func PromptInputWithRange ¶ added in v0.10.0
PromptInputWithRange prompts the user for an input integer within a specified range.
func PromptInputWithSuggestion ¶
PromptInputWithSuggestion prompts the user for an input string with a suggestion.
func PromptPassword ¶
PromptPassword prompts the user for a password. Set confirmation to true to require the user to confirm the password.
func TrapSignal ¶
func TrapSignal(cleanupFunc func())
TrapSignal traps SIGINT and SIGTERM and terminates the server correctly.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.