msgs

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorCmd

func ErrorCmd(message string, err error, sticky bool) tea.Cmd

func InfoCmd

func InfoCmd(message string) tea.Cmd

func SuccessCmd

func SuccessCmd(message string) tea.Cmd

func WarningCmd

func WarningCmd(message string, sticky bool) tea.Cmd

Types

type Error

type Error struct {
	Message string // user-friendly message
	Err     error  // underlying error (for logging)
	Sticky  bool
}

Error signals an error to show to the user.

type Info

type Info struct {
	Message string
}

Info signals an info message to show to the user.

type SetTheme added in v1.11.0

type SetTheme struct {
	Theme preferences.Theme
}

SetTheme requests a theme change.

type Success

type Success struct {
	Message string
}

Success signals a success message to show to the user.

type SyncStateChanged

type SyncStateChanged struct {
	State powersync.State
}

SyncStateChanged is emitted when sync state changes.

type Warning

type Warning struct {
	Message string
	Sticky  bool
}

Warning signals a warning to show to the user.

Jump to

Keyboard shortcuts

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