tui

package
v1.0.0-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sample

type Sample struct {
	SampleTime time.Time
	Bytes      uint64
}

type UIModel

type UIModel struct {
	Transfers []UITransfer
}

func (UIModel) Init

func (m UIModel) Init() tea.Cmd

func (UIModel) Update

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

func (UIModel) UpdateModel

func (model UIModel) UpdateModel(msg UITransferMsg) (UIModel, tea.Cmd)

func (UIModel) UpdateProgress

func (model UIModel) UpdateProgress(msg progress.FrameMsg) (UIModel, tea.Cmd)

func (UIModel) UpdateSpeed

func (model UIModel) UpdateSpeed(msg tickMsg) UIModel

func (UIModel) UpdateWidth

func (model UIModel) UpdateWidth(msg tea.WindowSizeMsg) UIModel

func (UIModel) View

func (m UIModel) View() string

type UITransfer

type UITransfer struct {
	CopierProgress      copier.CopierProgress
	Progress            progress.Model
	WindowStart         Sample
	SpeedBytesPerSecond float64
}

type UITransferMsg

type UITransferMsg struct {
	Progress copier.CopierProgress
}

Jump to

Keyboard shortcuts

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