Documentation ¶
Index ¶
- Constants
- Variables
- func DataDir() (string, error)
- func HTTPPort() (string, error)
- func NodeName() (string, error)
- func NodeType() (int, error)
- func P2PListener() (string, error)
- func WSPort() (string, error)
- func WalletPassPhrase() (string, error)
- func WalletPassword() (string, error)
- func WalletPath(nodePath string) (string, error)
Constants ¶
View Source
const (
RegPort = "^([0-9]|[1-9]\\d{1,3}|[1-5]\\d{4}|6[0-4]\\d{3}|65[0-4]\\d{2}|655[0-2]\\d|6553[0-5])$"
)
View Source
const (
Selected = `{{ "✔" | green }} {{ "%s" | cyan }}: {{ .Name }}`
)
Variables ¶
View Source
var PromptTemplate = &promptui.PromptTemplates{
Prompt: "{{ . }}:",
Valid: `{{ "✔" | green }} {{ . }}: `,
Invalid: `{{ "✗" | red }} {{ . }}: `,
Success: `{{ "✔" | green }} {{ . | cyan}}: `,
}
View Source
var TplNodeType = &promptui.SelectTemplates{ Label: label, Active: active, Inactive: inactive, Selected: fmt.Sprintf(Selected, "Node Type"), }
Functions ¶
func P2PListener ¶
func WalletPassPhrase ¶
func WalletPassword ¶
func WalletPath ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.