Documentation
¶
Index ¶
- func RunNode(nodeIdx int, start bool, m MultiNode) tea.Cmd
- func SwitchFocus(nodeIdx int) tea.Cmd
- func ToggleNode(nodeIdx int) tea.Cmd
- func UpdateDeemon() tea.Cmd
- type ChainDebug
- type ChainServe
- type Context
- type MultiNode
- type NodeStatus
- type SwitchFocusMsg
- type ToggleNodeMsg
- type UpdateLogsMsg
- type UpdateStatusMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SwitchFocus ¶
SwitchFocus changes the focus to a specific node.
func UpdateDeemon ¶
UpdateDeemon returns a command that sends an UpdateLogsMsg. This command is intended to continuously refresh the logs displayed in the user interface.
Types ¶
type ChainDebug ¶
type ChainDebug struct {
// contains filtered or unexported fields
}
ChainDebug defines a UI model for the chain debug command.
func NewChainDebug ¶
NewChainDebug returns a new UI model for the chain debug command.
func (ChainDebug) Init ¶
func (m ChainDebug) Init() tea.Cmd
Init is the first function that will be called. It returns a batch command that listen events and also runs the debug server.
type ChainServe ¶
type ChainServe struct {
// contains filtered or unexported fields
}
ChainServe defines a UI model for the chain serve command.
func NewChainServe ¶
NewChainServe returns a new UI model for the chain serve command.
func (ChainServe) Init ¶
func (m ChainServe) Init() tea.Cmd
Init is the first function that will be called. It returns a batch command that listen events and also runs the blockchain app.
type MultiNode ¶
type MultiNode struct {
// contains filtered or unexported fields
}
MultiNode represents a set of nodes, managing state and information related to them.
func (*MultiNode) StartAllNodes ¶
StartAllNodes starts all nodes that are currently stopped.
type NodeStatus ¶
type NodeStatus int
NodeStatus is an integer data type that represents the status of a node.
const ( // Stopped indicates that the node is currently stopped. Stopped NodeStatus = iota // Running indicates that the node is currently running. Running )
type SwitchFocusMsg ¶
type SwitchFocusMsg struct {
// contains filtered or unexported fields
}
SwitchFocusMsg indicates a switch in focus to another node.
type ToggleNodeMsg ¶
type ToggleNodeMsg struct {
// contains filtered or unexported fields
}
ToggleNodeMsg is a structure used to pass messages to enable or disable a node based on the node index.
type UpdateLogsMsg ¶
type UpdateLogsMsg struct{}
UpdateLogsMsg is for continuously updating the chain logs in the View.
type UpdateStatusMsg ¶
type UpdateStatusMsg struct {
// contains filtered or unexported fields
}
UpdateStatusMsg defines a message that updates the status of a node by index.