status

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: 13 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  models.NodeStatus
	Header  types.BlockHeader
	Network messages.NetworkMsg
	Err     error
	// contains filtered or unexported fields
}

Model representing the status.

func New

func New(style *style.Styles, requestor *messages.Requestor) Model

New creates a status Model.

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