dashboard

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: MIT Imports: 9 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 {
	// contains filtered or unexported fields
}

Model is the model of the dashboard component. It contains further components, which compose it. Model is similar to the tea.Model of the bubbletea package, but it is not the same as it does not implement the tea.Model interface. As a component, it returns itself in the Update method.

func NewModel

func NewModel() Model

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

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

Update is the update method of the dashboard component. It is called by the Update method of the tea.Model of the application. Note that the Update method of the dashboard component returns itself, and not the tea.Model. Thus it does not implement the tea.Model interface.

func (Model) View

func (m Model) View() string

Jump to

Keyboard shortcuts

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