Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Menu ¶
Menu represents a menu with items and navigation
func (*Menu) AddMenuItem ¶
AddMenuItem adds a menu item to the current menu
func (*Menu) AddSubMenu ¶
AddSubMenu adds a submenu to a menu item
type MenuItem ¶
type MenuItem struct {
ID string
Title string
Description string
Action func() error
SubMenu *Menu
}
MenuItem represents a single menu option
type MenuSystem ¶
type MenuSystem struct {
CurrentMenu *Menu
RootMenu *Menu
IsActive bool
ProgressIndicator interface {
Pause()
Resume()
IsPaused() bool
Stop()
Start()
}
Blockchain interface {
SetMenuActive(bool)
}
}
MenuSystem manages the overall menu system
func CreateBlockchainMenu ¶
func CreateBlockchainMenu(blockchain *sdk.Blockchain) *MenuSystem
BlockchainMenu creates the main blockchain menu system
func (*MenuSystem) Navigate ¶
func (ms *MenuSystem) Navigate() error
Navigate handles menu navigation
Click to show internal directories.
Click to hide internal directories.