ui

package
v0.0.0-...-f56fb8f Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: MPL-2.0 Imports: 10 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)

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()

func Render

func Render()

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