Documentation
¶
Index ¶
- func CancelModalCmd() tea.Cmd
- func EmitBlockSelectedMsg(blockNum uint64) tea.Cmd
- func EmitModuleSelectedCmd(moduleName, target string) tea.Cmd
- func ErrorCmd(err error) tea.Cmd
- func SetModalComponentCmd(comp Component) tea.Cmd
- func SetRequestValueCmd(field, value string) tea.Cmd
- func SetupNewInstanceCmd(startStream bool) tea.Cmd
- func ShortToFullHelp(comp Component) [][]key.Binding
- func ToDynamicBytesRepresentation(bytesRepresentation sink.BytesRepresentation) dynamic.BytesRepresentation
- type BlockContext
- type BlockSelectedMsg
- type CancelModalMsg
- type Common
- type Component
- type ErrorMsg
- type GoToOutputMsg
- type IsFullWidthModal
- type IsInlineModal
- type ModuleSelectedMsg
- type SetModalComponentMsg
- type SetRequestValue
- type SetupNewInstanceMsg
- type SimpleHelp
- type TUIConfig
- type UpdateSeenModulesMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CancelModalCmd ¶ added in v1.10.0
func EmitBlockSelectedMsg ¶ added in v1.1.1
func EmitModuleSelectedCmd ¶ added in v1.10.0
func SetModalComponentCmd ¶ added in v1.10.0
func SetRequestValueCmd ¶ added in v1.10.0
func SetupNewInstanceCmd ¶ added in v1.17.4
func ShortToFullHelp ¶ added in v1.10.0
func ToDynamicBytesRepresentation ¶ added in v1.16.2
func ToDynamicBytesRepresentation(bytesRepresentation sink.BytesRepresentation) dynamic.BytesRepresentation
ToDynamicBytesRepresentation converts a sink.BytesRepresentation to a dynamic.BytesRepresentation. We don't use dynamic.BytesRepresentation directly because it requires a golang override of dynamic module
Types ¶
type BlockContext ¶ added in v1.16.2
BlockContext represents a module and block number combination
type BlockSelectedMsg ¶ added in v1.1.1
type BlockSelectedMsg uint64 // Emitted to inform all components that a new block has been selected.
type CancelModalMsg ¶ added in v1.10.0
type CancelModalMsg struct{} // Emitted by components to close itselt
type Component ¶
type Component interface {
tea.Model
help.KeyMap
SetSize(width, height int)
GetWidth() int
GetHeight() int
}
Component represents a Bubble Tea model that implements a SetSize function.
type GoToOutputMsg ¶ added in v1.10.0
type GoToOutputMsg struct{}
type IsFullWidthModal ¶ added in v1.10.0
type IsFullWidthModal interface {
IsFullWidthModal()
}
type IsInlineModal ¶ added in v1.10.0
type IsInlineModal interface {
IsInlineModal()
}
type ModuleSelectedMsg ¶ added in v1.1.1
type SetModalComponentMsg ¶ added in v1.10.0
type SetModalComponentMsg Component
type SetRequestValue ¶ added in v1.10.0
type SetupNewInstanceMsg ¶ added in v1.17.4
type SetupNewInstanceMsg struct {
StartStream bool
}
type SimpleHelp ¶ added in v1.10.0
func NewSimpleHelp ¶ added in v1.10.0
func NewSimpleHelp(bindings ...key.Binding) SimpleHelp
func (SimpleHelp) FullHelp ¶ added in v1.10.0
func (h SimpleHelp) FullHelp() [][]key.Binding
func (SimpleHelp) ShortHelp ¶ added in v1.10.0
func (h SimpleHelp) ShortHelp() []key.Binding
type TUIConfig ¶ added in v1.16.2
type TUIConfig struct {
ManifestPath string
HomeDir string
Vcr bool
Headers map[string]string
StartBlock int64
StopBlock string
Cursor string
Params string
DefaultParams string
OutputModule string
RequiresBuild bool
RequestedBytesRepr string
}
TUIConfig contains TUI-specific configuration that doesn't belong in SinkerConfig
type UpdateSeenModulesMsg ¶ added in v1.1.1
type UpdateSeenModulesMsg []string
Click to show internal directories.
Click to hide internal directories.