cmdmodel

package
v28.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainDebug

type ChainDebug struct {
	// contains filtered or unexported fields
}

ChainDebug defines a UI model for the chain debug command.

func NewChainDebug

func NewChainDebug(mCtx Context, bus events.Provider, cmd tea.Cmd) ChainDebug

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.

func (ChainDebug) Update

func (m ChainDebug) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update is called when a message is received. It handles messages and executes the logic that updates the model.

func (ChainDebug) View

func (m ChainDebug) View() string

View renders the UI after every update.

type ChainServe

type ChainServe struct {
	// contains filtered or unexported fields
}

ChainServe defines a UI model for the chain serve command.

func NewChainServe

func NewChainServe(mCtx Context, bus events.Provider, cmd tea.Cmd) ChainServe

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.

func (ChainServe) Update

func (m ChainServe) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update is called when a message is received. It handles messages and executes the logic that updates the model.

func (ChainServe) View

func (m ChainServe) View() string

View renders the UI after every update.

type Context

type Context interface {
	// Context returns the current context.
	Context() context.Context

	// SetContext updates the context with a new one.
	SetContext(context.Context)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL