model

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	Status        tea.Model
	Accounts      tea.Model
	Tabs          tabs.Model
	BlockExplorer tea.Model
	Configs       tea.Model
	Utilities     tea.Model
	About         tea.Model
	Help          help.Model
	Footer        tea.Model
	// contains filtered or unexported fields
}

Model represents the top level of the TUI.

func New

func New(requestor *messages.Requestor, addresses []types.Address) Model

New initializes the TUI.

func (Model) Init

func (m Model) Init() tea.Cmd

Init is part of the tea.Model interface.

func (Model) Update

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

Update is part of the tea.Model interface.

func (Model) View

func (m Model) View() string

View is part of the tea.Model interface.

Jump to

Keyboard shortcuts

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