info

package
v0.0.0-...-699415a Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2022 License: MIT Imports: 4 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 {
	Quit bool // signals it's time to exit the whole application
	Err  error
	User *db.User
	// contains filtered or unexported fields
}

Model stores the state of the info user interface.

func NewModel

func NewModel(cfg *config.ConfigCms, urls config.ConfigURL, user *db.User) Model

NewModel returns a new Model in its initial state.

func Update

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

Update is the Bubble Tea update loop.

func (Model) View

func (m Model) View() string

View renders the current view from the model.

Jump to

Keyboard shortcuts

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