Help us shape the future of Go! Take the 2026 Go Developer Survey

tui

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProtectPendingWrite

func ProtectPendingWrite(model tea.Model, msg tea.Msg) tea.Msg

Types

type DeleteApplication

type DeleteApplication func(int64) error

type JobList

type JobList struct {
	JobsTable table.Model
	// contains filtered or unexported fields
}

func InitJobList

func InitJobList(jobs []model.StoredJobApplication, save ...SaveApplication) JobList

The optional save callback keeps persistence outside the view model.

func (*JobList) Busy

func (jobList *JobList) Busy() bool

Busy reports a pending database write.

func (*JobList) Init

func (jobList *JobList) Init() tea.Cmd

func (*JobList) SetMutationHandlers

func (jobList *JobList) SetMutationHandlers(update UpdateApplication, remove DeleteApplication)

SetMutationHandlers enables editing and deletion using the caller's repository.

func (*JobList) Update

func (jobList *JobList) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*JobList) View

func (jobList *JobList) View() string

type UpdateApplication

type UpdateApplication func(model.StoredJobApplication) error

Jump to

Keyboard shortcuts

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