program

package
v0.0.0-...-d27b038 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(s *store.App) *tea.Program

Types

type Stage

type Stage int
var (
	StageExit       Stage = 0
	StageMenu       Stage = 1
	StageSettings   Stage = 2
	StageOpenOrders Stage = 3
	StageView       Stage = 4
	StageError      Stage = 5
)

type StageDispatcher

type StageDispatcher func(msg tea.Msg)

StageDispatcher sends messages to the global context to be processed

type StageModel

type StageModel interface {
	Init(dispatch StageDispatcher) tea.Cmd

	Update(msg tea.Msg) (Stage, StageModel, tea.Cmd)

	View() string
}

Jump to

Keyboard shortcuts

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