ui

package
v0.0.0-...-28d44df Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2025 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WindowTitle  string = "Alpine Client"
	WindowWidth  int    = 377
	WindowHeight int    = 144
	MaxProgress  int    = 1000 // 1000 is used over 100 to make bar smoother
)

Variables

This section is empty.

Functions

func Close

func Close()

func DisplayError

func DisplayError(ctx context.Context, err error, logFile *os.File, sentryClient *sentry.Client) error

DisplayError closes the progress-bar, sends the error to sentry and displays a pop-up for the user Also adds a breadcrumb to the provided sentry hub connected to the context.

func NotifyNewUpdate

func NotifyNewUpdate(l *slog.Logger)

func Render

func Render(l *slog.Logger)

Types

type ProgressiveTask

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

func NewProgressTask

func NewProgressTask(label string) *ProgressiveTask

func (*ProgressiveTask) UpdateProgress

func (pt *ProgressiveTask) UpdateProgress(v float64, label ...string)

Jump to

Keyboard shortcuts

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