accounts

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: 10 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 {
	Accounts map[types.Address]*account

	Err error
	// contains filtered or unexported fields
}

Model representing the account bubble.

func New

func New(style *style.Styles, requestor *messages.Requestor, initialHeight int, heightMargin int, accounts []types.Address) Model

New creates the accounts Model.

func (Model) Init

func (m Model) Init() tea.Cmd

Init is part of the tea.Model interface.

func (*Model) SetAccounts

func (m *Model) SetAccounts(accounts []types.Address)

SetAccounts updates the accounts to monitor.

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