progress

package
v0.0.0-...-3fd34f2 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Progress

type Progress struct {
	ProgressModel progress.Model
	PercentChan   chan float64
	IsComplete    float64
	ParentCtx     context.Context
	Ctx           context.Context
	Can           context.CancelFunc
	Wg            sync.WaitGroup
	TimeDuration  time.Duration
	Count         int
	Step          float64
}

func NewProgress

func NewProgress(parentCtx context.Context) *Progress

func (*Progress) ConfigDuration

func (m *Progress) ConfigDuration()

func (*Progress) Init

func (m *Progress) Init() tea.Cmd

func (*Progress) Run

func (m *Progress) Run()

func (*Progress) Update

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

func (*Progress) UpdateProgress

func (p *Progress) UpdateProgress()

func (*Progress) View

func (m *Progress) View() string

Jump to

Keyboard shortcuts

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