progress

package
v0.0.0-...-868027d Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 3 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) EventChannel

func (m Model) EventChannel() chan ProgressEvent

func (Model) Message

func (m Model) Message() string

func (Model) Percent

func (m Model) Percent() float64

func (Model) PollEvents

func (m Model) PollEvents() tea.Cmd

func (Model) Update

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

func (Model) View

func (m Model) View() string

func (Model) ViewAs

func (m Model) ViewAs(percent float64) string

type ProgressDone

type ProgressDone struct{}

type ProgressEvent

type ProgressEvent struct {
	Current int
	Total   int
	Message string
}

func (ProgressEvent) Percent

func (e ProgressEvent) Percent() float64

Jump to

Keyboard shortcuts

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