notification

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

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

func New

func New() Model

func (*Model) Activate

func (m *Model) Activate()

func (Model) FullHelp

func (m Model) FullHelp() [][]key.Binding

func (Model) IsActive

func (m Model) IsActive() bool

func (*Model) SetSize

func (m *Model) SetSize(h, v int)

func (Model) ShortHelp

func (m Model) ShortHelp() []key.Binding

func (Model) Update

func (m Model) Update(msg tea.KeyMsg) (Model, tea.Cmd)

func (Model) UpdateMessage

func (m Model) UpdateMessage(msg NotificationMsg) Model

func (Model) View

func (m Model) View() string

type NotificationKeyMap

type NotificationKeyMap struct {
	DISMISS key.Binding
}

func (NotificationKeyMap) FullHelp

func (k NotificationKeyMap) FullHelp() [][]key.Binding

func (NotificationKeyMap) ShortHelp

func (k NotificationKeyMap) ShortHelp() []key.Binding

type NotificationLevel

type NotificationLevel int
const (
	INFO NotificationLevel = iota
	WARNING
	ERROR
)

type NotificationMsg

type NotificationMsg struct {
	Message string
	Level   NotificationLevel
}

Jump to

Keyboard shortcuts

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