Documentation
¶
Index ¶
- Variables
- func ChangePage(nextPage string)
- func GetCcClient(ccClient string) string
- func GetEcClient(ecClient string) string
- func GetRandomCcClient() string
- func GetRandomEcClient() string
- func SetSettings(settings SettingsType)
- func Setup(app *tview.Application)
- type Confirmation
- type ConsensusClientCheckpointSync
- type ConsensusClientDopelgangerProtection
- func (n *ConsensusClientDopelgangerProtection) GetFirstElement() tview.Primitive
- func (p *ConsensusClientDopelgangerProtection) GoBack()
- func (p *ConsensusClientDopelgangerProtection) HandleEvents(event *tcell.EventKey) *tcell.EventKey
- func (p *ConsensusClientDopelgangerProtection) Page() tview.Primitive
- type ConsensusClientExternalSelectedLighthouse
- func (p *ConsensusClientExternalSelectedLighthouse) GetFirstElement() tview.Primitive
- func (p *ConsensusClientExternalSelectedLighthouse) GoBack()
- func (p *ConsensusClientExternalSelectedLighthouse) HandleEvents(event *tcell.EventKey) *tcell.EventKey
- func (p *ConsensusClientExternalSelectedLighthouse) Page() tview.Primitive
- type ConsensusClientExternalSelectedLighthouseType
- type ConsensusClientExternalSelectedPrysm
- func (p *ConsensusClientExternalSelectedPrysm) GetFirstElement() tview.Primitive
- func (p *ConsensusClientExternalSelectedPrysm) GoBack()
- func (p *ConsensusClientExternalSelectedPrysm) HandleEvents(event *tcell.EventKey) *tcell.EventKey
- func (p *ConsensusClientExternalSelectedPrysm) Page() tview.Primitive
- type ConsensusClientExternalSelectedPrysmType
- type ConsensusClientExternalSelectedTeku
- func (p *ConsensusClientExternalSelectedTeku) GetFirstElement() tview.Primitive
- func (p *ConsensusClientExternalSelectedTeku) GoBack()
- func (p *ConsensusClientExternalSelectedTeku) HandleEvents(event *tcell.EventKey) *tcell.EventKey
- func (p *ConsensusClientExternalSelectedTeku) Page() tview.Primitive
- type ConsensusClientExternalSelectedTekuType
- type ConsensusClientExternalType
- type ConsensusClientGraffiti
- type ConsensusClientSelection
- type ConsensusClientSettingsType
- type Dummy
- type ETHClient
- type ExecutionClient
- type ExecutionClientExternal
- type ExecutionClientExternalSelection
- type ExecutionClientExternalType
- type ExecutionClientSettingsType
- type FallbackClients
- type FallbackClientsLighthouse
- func (p *FallbackClientsLighthouse) GetFirstElement() tview.Primitive
- func (p *FallbackClientsLighthouse) GoBack()
- func (p *FallbackClientsLighthouse) HandleEvents(event *tcell.EventKey) *tcell.EventKey
- func (p *FallbackClientsLighthouse) OnResume()
- func (p *FallbackClientsLighthouse) Page() tview.Primitive
- type FallbackClientsLighthouseType
- type FallbackClientsPrysm
- type FallbackClientsPrysmType
- type FallbackClientsSettingsType
- type FallbackClientsTeku
- type FallbackClientsTekuType
- type MEVBoost
- type MEVBoostExternal
- type MEVBoostLocal
- type ModalPage
- type Monitoring
- type Network
- type PageInterface
- type PageType
- func (p *PageType) GetFirstElement() tview.Primitive
- func (p *PageType) GoBack()
- func (p *PageType) HandleEvents(event *tcell.EventKey) *tcell.EventKey
- func (p *PageType) OnResume()
- func (p *PageType) Page() tview.Primitive
- func (p *PageType) SetApp(app *tview.Application)
- func (p *PageType) SetPageID(id string)
- type SettingsType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( All = map[string]PageInterface{} Pages *tview.Pages )
Functions ¶
func ChangePage ¶
func ChangePage(nextPage string)
func GetCcClient ¶
func GetEcClient ¶
func GetRandomCcClient ¶
func GetRandomCcClient() string
func GetRandomEcClient ¶
func GetRandomEcClient() string
TODO - bchain and hamid - refactor the types to a repo to share types b/w wizard and stader node
func SetSettings ¶
func SetSettings(settings SettingsType)
func Setup ¶
func Setup(app *tview.Application)
TODO: This is a bit of a mess, I'm sure there's a better way to do this. Setup should be called once to initialize the pages
Types ¶
type Confirmation ¶
type Confirmation struct { *PageType // contains filtered or unexported fields }
func (*Confirmation) GetFirstElement ¶
func (n *Confirmation) GetFirstElement() tview.Primitive
func (*Confirmation) GoBack ¶
func (n *Confirmation) GoBack()
func (*Confirmation) HandleEvents ¶
func (n *Confirmation) HandleEvents(event *tcell.EventKey) *tcell.EventKey
func (*Confirmation) OnResume ¶
func (n *Confirmation) OnResume()
func (*Confirmation) Page ¶
func (n *Confirmation) Page() tview.Primitive
type ConsensusClientCheckpointSync ¶
type ConsensusClientCheckpointSync struct { *PageType // contains filtered or unexported fields }
func (*ConsensusClientCheckpointSync) GetFirstElement ¶
func (p *ConsensusClientCheckpointSync) GetFirstElement() tview.Primitive
func (*ConsensusClientCheckpointSync) GoBack ¶
func (p *ConsensusClientCheckpointSync) GoBack()
func (*ConsensusClientCheckpointSync) HandleEvents ¶
func (p *ConsensusClientCheckpointSync) HandleEvents(event *tcell.EventKey) *tcell.EventKey
func (*ConsensusClientCheckpointSync) Page ¶
func (p *ConsensusClientCheckpointSync) Page() tview.Primitive
type ConsensusClientDopelgangerProtection ¶
type ConsensusClientDopelgangerProtection struct { *PageType // contains filtered or unexported fields }
func (*ConsensusClientDopelgangerProtection) GetFirstElement ¶
func (n *ConsensusClientDopelgangerProtection) GetFirstElement() tview.Primitive
func (*ConsensusClientDopelgangerProtection) GoBack ¶
func (p *ConsensusClientDopelgangerProtection) GoBack()
func (*ConsensusClientDopelgangerProtection) HandleEvents ¶
func (p *ConsensusClientDopelgangerProtection) HandleEvents(event *tcell.EventKey) *tcell.EventKey
func (*ConsensusClientDopelgangerProtection) Page ¶
func (p *ConsensusClientDopelgangerProtection) Page() tview.Primitive
type ConsensusClientExternalSelectedLighthouse ¶
type ConsensusClientExternalSelectedLighthouse struct { *PageType // contains filtered or unexported fields }
func (*ConsensusClientExternalSelectedLighthouse) GetFirstElement ¶
func (p *ConsensusClientExternalSelectedLighthouse) GetFirstElement() tview.Primitive
func (*ConsensusClientExternalSelectedLighthouse) GoBack ¶
func (p *ConsensusClientExternalSelectedLighthouse) GoBack()
func (*ConsensusClientExternalSelectedLighthouse) HandleEvents ¶
func (p *ConsensusClientExternalSelectedLighthouse) HandleEvents(event *tcell.EventKey) *tcell.EventKey
func (*ConsensusClientExternalSelectedLighthouse) Page ¶
func (p *ConsensusClientExternalSelectedLighthouse) Page() tview.Primitive
type ConsensusClientExternalSelectedLighthouseType ¶
type ConsensusClientExternalSelectedLighthouseType struct {
HTTPUrl string `json:"httpUrl"`
}
type ConsensusClientExternalSelectedPrysm ¶
type ConsensusClientExternalSelectedPrysm struct { *PageType // contains filtered or unexported fields }
func (*ConsensusClientExternalSelectedPrysm) GetFirstElement ¶
func (p *ConsensusClientExternalSelectedPrysm) GetFirstElement() tview.Primitive
func (*ConsensusClientExternalSelectedPrysm) GoBack ¶
func (p *ConsensusClientExternalSelectedPrysm) GoBack()
func (*ConsensusClientExternalSelectedPrysm) HandleEvents ¶
func (p *ConsensusClientExternalSelectedPrysm) HandleEvents(event *tcell.EventKey) *tcell.EventKey
func (*ConsensusClientExternalSelectedPrysm) Page ¶
func (p *ConsensusClientExternalSelectedPrysm) Page() tview.Primitive
type ConsensusClientExternalSelectedTeku ¶
type ConsensusClientExternalSelectedTeku struct { *PageType // contains filtered or unexported fields }
func (*ConsensusClientExternalSelectedTeku) GetFirstElement ¶
func (p *ConsensusClientExternalSelectedTeku) GetFirstElement() tview.Primitive
func (*ConsensusClientExternalSelectedTeku) GoBack ¶
func (p *ConsensusClientExternalSelectedTeku) GoBack()
func (*ConsensusClientExternalSelectedTeku) HandleEvents ¶
func (p *ConsensusClientExternalSelectedTeku) HandleEvents(event *tcell.EventKey) *tcell.EventKey
func (*ConsensusClientExternalSelectedTeku) Page ¶
func (p *ConsensusClientExternalSelectedTeku) Page() tview.Primitive
type ConsensusClientExternalSelectedTekuType ¶
type ConsensusClientExternalSelectedTekuType struct {
HTTPUrl string `json:"httpUrl"`
}
type ConsensusClientExternalType ¶
type ConsensusClientExternalType struct { Lighthouse ConsensusClientExternalSelectedLighthouseType `json:"lighthouse"` Prysm ConsensusClientExternalSelectedPrysmType `json:"prysm"` Teku ConsensusClientExternalSelectedTekuType `json:"teku"` }
type ConsensusClientGraffiti ¶
type ConsensusClientGraffiti struct { *PageType // contains filtered or unexported fields }
func (*ConsensusClientGraffiti) GetFirstElement ¶
func (p *ConsensusClientGraffiti) GetFirstElement() tview.Primitive
func (*ConsensusClientGraffiti) GoBack ¶
func (p *ConsensusClientGraffiti) GoBack()
func (*ConsensusClientGraffiti) HandleEvents ¶
func (p *ConsensusClientGraffiti) HandleEvents(event *tcell.EventKey) *tcell.EventKey
func (*ConsensusClientGraffiti) Page ¶
func (p *ConsensusClientGraffiti) Page() tview.Primitive
type ConsensusClientSelection ¶
type ConsensusClientSelection struct { *PageType // contains filtered or unexported fields }
func (*ConsensusClientSelection) GetFirstElement ¶
func (p *ConsensusClientSelection) GetFirstElement() tview.Primitive
func (*ConsensusClientSelection) GoBack ¶
func (p *ConsensusClientSelection) GoBack()
func (*ConsensusClientSelection) HandleEvents ¶
func (p *ConsensusClientSelection) HandleEvents(event *tcell.EventKey) *tcell.EventKey
func (*ConsensusClientSelection) Page ¶
func (p *ConsensusClientSelection) Page() tview.Primitive
type ConsensusClientSettingsType ¶
type ConsensusClientSettingsType struct { Selection string `json:"selection"` ExternalSelection string `json:"externalSelection"` Graffit string `json:"graffit"` CheckpointUrl string `json:"checkpointUrl"` DoppelgangerProtection string `json:"doppelgangerProtection"` External ConsensusClientExternalType `json:"external"` }
type Dummy ¶
type Dummy struct {
*PageType
}
func (*Dummy) HandleEvents ¶
func (p *Dummy) HandleEvents(event *tcell.EventKey) *tcell.EventKey
type ETHClient ¶
type ETHClient struct { *PageType // contains filtered or unexported fields }
func (*ETHClient) GetFirstElement ¶
func (*ETHClient) HandleEvents ¶
func (p *ETHClient) HandleEvents(event *tcell.EventKey) *tcell.EventKey
type ExecutionClient ¶
type ExecutionClient struct { *PageType // contains filtered or unexported fields }
func (*ExecutionClient) GetFirstElement ¶
func (p *ExecutionClient) GetFirstElement() tview.Primitive
func (*ExecutionClient) GoBack ¶
func (p *ExecutionClient) GoBack()
func (*ExecutionClient) HandleEvents ¶
func (p *ExecutionClient) HandleEvents(event *tcell.EventKey) *tcell.EventKey
func (*ExecutionClient) Page ¶
func (p *ExecutionClient) Page() tview.Primitive
type ExecutionClientExternal ¶
type ExecutionClientExternal struct { *PageType // contains filtered or unexported fields }
func (*ExecutionClientExternal) GetFirstElement ¶
func (p *ExecutionClientExternal) GetFirstElement() tview.Primitive
func (*ExecutionClientExternal) GoBack ¶
func (p *ExecutionClientExternal) GoBack()
func (*ExecutionClientExternal) HandleEvents ¶
func (p *ExecutionClientExternal) HandleEvents(event *tcell.EventKey) *tcell.EventKey
func (*ExecutionClientExternal) Page ¶
func (p *ExecutionClientExternal) Page() tview.Primitive
type ExecutionClientExternalSelection ¶
type ExecutionClientExternalSelection struct { *PageType // contains filtered or unexported fields }
func (*ExecutionClientExternalSelection) GetFirstElement ¶
func (n *ExecutionClientExternalSelection) GetFirstElement() tview.Primitive
func (*ExecutionClientExternalSelection) GoBack ¶
func (p *ExecutionClientExternalSelection) GoBack()
func (*ExecutionClientExternalSelection) HandleEvents ¶
func (p *ExecutionClientExternalSelection) HandleEvents(event *tcell.EventKey) *tcell.EventKey
func (*ExecutionClientExternalSelection) Page ¶
func (p *ExecutionClientExternalSelection) Page() tview.Primitive
type ExecutionClientSettingsType ¶
type ExecutionClientSettingsType struct { SelectionOption string `json:"selectionOption"` External ExecutionClientExternalType `json:"external"` }
type FallbackClients ¶
type FallbackClients struct { *PageType // contains filtered or unexported fields }
func (*FallbackClients) GetFirstElement ¶
func (n *FallbackClients) GetFirstElement() tview.Primitive
func (*FallbackClients) GoBack ¶
func (p *FallbackClients) GoBack()
func (*FallbackClients) HandleEvents ¶
func (p *FallbackClients) HandleEvents(event *tcell.EventKey) *tcell.EventKey
func (*FallbackClients) Page ¶
func (p *FallbackClients) Page() tview.Primitive
type FallbackClientsLighthouse ¶
type FallbackClientsLighthouse struct { *PageType // contains filtered or unexported fields }
func (*FallbackClientsLighthouse) GetFirstElement ¶
func (p *FallbackClientsLighthouse) GetFirstElement() tview.Primitive
func (*FallbackClientsLighthouse) HandleEvents ¶
func (p *FallbackClientsLighthouse) HandleEvents(event *tcell.EventKey) *tcell.EventKey
func (*FallbackClientsLighthouse) OnResume ¶
func (p *FallbackClientsLighthouse) OnResume()
func (*FallbackClientsLighthouse) Page ¶
func (p *FallbackClientsLighthouse) Page() tview.Primitive
type FallbackClientsPrysm ¶
type FallbackClientsPrysm struct { *PageType // contains filtered or unexported fields }
func (*FallbackClientsPrysm) GetFirstElement ¶
func (p *FallbackClientsPrysm) GetFirstElement() tview.Primitive
func (*FallbackClientsPrysm) GoBack ¶
func (p *FallbackClientsPrysm) GoBack()
func (*FallbackClientsPrysm) HandleEvents ¶
func (p *FallbackClientsPrysm) HandleEvents(event *tcell.EventKey) *tcell.EventKey
func (*FallbackClientsPrysm) OnResume ¶
func (p *FallbackClientsPrysm) OnResume()
func (*FallbackClientsPrysm) Page ¶
func (p *FallbackClientsPrysm) Page() tview.Primitive
type FallbackClientsSettingsType ¶
type FallbackClientsSettingsType struct { SelectionOption string `json:"selectionOption"` Lighthouse FallbackClientsLighthouseType `json:"lighthouse"` Prysm FallbackClientsPrysmType `json:"prysm"` Teku FallbackClientsTekuType `json:"teku"` }
type FallbackClientsTeku ¶
type FallbackClientsTeku struct { *PageType // contains filtered or unexported fields }
func (*FallbackClientsTeku) GetFirstElement ¶
func (p *FallbackClientsTeku) GetFirstElement() tview.Primitive
func (*FallbackClientsTeku) GoBack ¶
func (p *FallbackClientsTeku) GoBack()
func (*FallbackClientsTeku) HandleEvents ¶
func (p *FallbackClientsTeku) HandleEvents(event *tcell.EventKey) *tcell.EventKey
func (*FallbackClientsTeku) OnResume ¶
func (p *FallbackClientsTeku) OnResume()
func (*FallbackClientsTeku) Page ¶
func (p *FallbackClientsTeku) Page() tview.Primitive
type FallbackClientsTekuType ¶
type MEVBoost ¶
type MEVBoost struct { *PageType // contains filtered or unexported fields }
func (*MEVBoost) GetFirstElement ¶
func (*MEVBoost) HandleEvents ¶
func (p *MEVBoost) HandleEvents(event *tcell.EventKey) *tcell.EventKey
type MEVBoostExternal ¶
type MEVBoostExternal struct { *PageType // contains filtered or unexported fields }
func (*MEVBoostExternal) GetFirstElement ¶
func (p *MEVBoostExternal) GetFirstElement() tview.Primitive
func (*MEVBoostExternal) GoBack ¶
func (p *MEVBoostExternal) GoBack()
func (*MEVBoostExternal) HandleEvents ¶
func (p *MEVBoostExternal) HandleEvents(event *tcell.EventKey) *tcell.EventKey
func (*MEVBoostExternal) OnResume ¶
func (p *MEVBoostExternal) OnResume()
func (*MEVBoostExternal) Page ¶
func (p *MEVBoostExternal) Page() tview.Primitive
type MEVBoostLocal ¶
type MEVBoostLocal struct { *PageType // contains filtered or unexported fields }
func (*MEVBoostLocal) GetFirstElement ¶
func (p *MEVBoostLocal) GetFirstElement() tview.Primitive
func (*MEVBoostLocal) GoBack ¶
func (p *MEVBoostLocal) GoBack()
func (*MEVBoostLocal) HandleEvents ¶
func (p *MEVBoostLocal) HandleEvents(event *tcell.EventKey) *tcell.EventKey
func (*MEVBoostLocal) OnResume ¶
func (p *MEVBoostLocal) OnResume()
func (*MEVBoostLocal) Page ¶
func (p *MEVBoostLocal) Page() tview.Primitive
type Monitoring ¶
type Monitoring struct { *PageType // contains filtered or unexported fields }
func (*Monitoring) GetFirstElement ¶
func (n *Monitoring) GetFirstElement() tview.Primitive
func (*Monitoring) GoBack ¶
func (n *Monitoring) GoBack()
func (*Monitoring) HandleEvents ¶
func (n *Monitoring) HandleEvents(event *tcell.EventKey) *tcell.EventKey
func (*Monitoring) OnResume ¶
func (n *Monitoring) OnResume()
func (*Monitoring) Page ¶
func (n *Monitoring) Page() tview.Primitive
type Network ¶
type Network struct { *PageType // contains filtered or unexported fields }
func (*Network) GetFirstElement ¶
func (*Network) HandleEvents ¶
func (n *Network) HandleEvents(event *tcell.EventKey) *tcell.EventKey
type PageInterface ¶
type PageInterface interface { // These will be called during initialisation // in pages/init.go SetPageID(id string) SetApp(app *tview.Application) // These will be implemented by each page Page() tview.Primitive HandleEvents(event *tcell.EventKey) *tcell.EventKey GetFirstElement() tview.Primitive OnResume() GoBack() }
type PageType ¶
type PageType struct { ID string App *tview.Application }
func (*PageType) GetFirstElement ¶
GetFirstElement returns the first element in the page, so that the app can set focus on it
func (*PageType) HandleEvents ¶
func (p *PageType) HandleEvents(event *tcell.EventKey) *tcell.EventKey
func (*PageType) SetApp ¶ added in v0.0.2
func (p *PageType) SetApp(app *tview.Application)
type SettingsType ¶
type SettingsType struct { Confirmed bool `json:"confirmed"` Network string `json:"network"` EthClient string `json:"ethClient"` ExecutionClient ExecutionClientSettingsType `json:"executionClient"` ConsensusClient ConsensusClientSettingsType `json:"consensusClient"` Monitoring string `json:"monitoring"` MEVBoost string `json:"mevBoost"` MEVBoostExternalMevUrl string `json:"mevBoostLocalMevUrl"` MEVBoostLocalRegulated bool `json:"mevBoostLocalRegulated"` MEVBoostLocalUnregulated bool `json:"mevBoostLocalUnregulated"` FallbackClients FallbackClientsSettingsType `json:"fallbackClients"` }
func GetSettings ¶
func GetSettings() SettingsType
Source Files
¶
- Confirmation.go
- ConsensusClientCheckpointSync.go
- ConsensusClientDopelgangerProtection.go
- ConsensusClientExternalSelectedLighthouse.go
- ConsensusClientExternalSelectedPrysm.go
- ConsensusClientExternalSelectedTeku.go
- ConsensusClientGraffiti.go
- ConsensusClientSelection.go
- Dummy.go
- ETHClient.go
- ExecutionClient.go
- ExecutionClientExternal.go
- ExecutionClientExternalSelection.go
- FallbackClients.go
- FallbackClientsLighthouse.go
- FallbackClientsPrysm.go
- FallbackClientsTeku.go
- MEVBoost.go
- MEVBoostExternal.go
- MEVBoostLocal.go
- Modal.go
- Monitoring.go
- Network.go
- init.go
- page_type.go
- utils.go
Click to show internal directories.
Click to hide internal directories.