state

package
v0.0.0-...-2e0dfad Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NotificationMsg

func NotificationMsg(message string, messageLevel MessageLevel) tea.Cmd

Types

type ClearNotificationMsg

type ClearNotificationMsg struct{}

type CredInfo

type CredInfo struct {
	Source   string
	Username string
	Password string
}

type MessageLevel

type MessageLevel int
const (
	MessageLevelError MessageLevel = iota
	MessageLevelSuccess
	MessageLevelNotif
)

type Model

type Model struct {
	Screen        Screen
	KeyToCredInfo map[string]CredInfo
	Secret        []byte
	Index         bleve.Index
	Notification  string
	Quitting      bool

	Dirty bool
}

func Initial

func Initial() Model

func (*Model) Update

func (m *Model) Update(msg tea.Msg)

type Screen

type Screen int
const (
	EntryScreen Screen = iota
	InteractScreen
	ChangeMasterScreen
)

type ShowNotificationMsg

type ShowNotificationMsg string

Jump to

Keyboard shortcuts

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