ui

package
v0.0.0-...-3c068b5 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppRootModel

type AppRootModel struct {
	// contains filtered or unexported fields
}

func NewAppRootModel

func NewAppRootModel(ctx context.Context, monitor *ommonitor.Monitor, table TicketTableModel, detail TicketDetailModel, refreshInterval time.Duration) *AppRootModel

func (AppRootModel) Init

func (m AppRootModel) Init() tea.Cmd

func (AppRootModel) Update

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

func (AppRootModel) View

func (m AppRootModel) View() string

type TicketDetailModel

type TicketDetailModel struct {
	// contains filtered or unexported fields
}

func NewTicketDetailModel

func NewTicketDetailModel() (TicketDetailModel, error)

func (*TicketDetailModel) SetSize

func (m *TicketDetailModel) SetSize(width, height int)

func (*TicketDetailModel) SetTicket

func (m *TicketDetailModel) SetTicket(ticket *ommonitor.Ticket)

func (TicketDetailModel) Update

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

func (TicketDetailModel) View

func (m TicketDetailModel) View() string

type TicketTableModel

type TicketTableModel struct {
	// contains filtered or unexported fields
}

func NewTicketTableModel

func NewTicketTableModel(extColumns []string) TicketTableModel

func (*TicketTableModel) SetSize

func (m *TicketTableModel) SetSize(width, height int)

func (TicketTableModel) TicketCount

func (m TicketTableModel) TicketCount() int

func (TicketTableModel) TicketSelected

func (m TicketTableModel) TicketSelected() (ommonitor.Ticket, bool)

func (TicketTableModel) Update

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

func (TicketTableModel) View

func (m TicketTableModel) View() string

Jump to

Keyboard shortcuts

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