app

package
v0.0.0-...-bfe490c Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Screen

type Screen int
const (
	Login Screen = iota
	MainScreen
)

type State

type State struct {
	UI     UI
	Client *irc.Client
}

func InitialState

func InitialState() *State

func (State) Init

func (s State) Init() tea.Cmd

func (State) Update

func (s State) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (State) View

func (s State) View() string

type UI

type UI struct {
	CurrentScreen Screen
	Login         login.State
	MainScreen    mainscreen.State
}

Jump to

Keyboard shortcuts

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