transferprogress

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2023 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 Model

type Model struct {
	Width int

	PayloadSize int64

	TransferStartTime        time.Time
	TransferSpeedEstimateBps int64
	// contains filtered or unexported fields
}

func New

func New(opts ...Option) Model

func (Model) Init

func (Model) Init() tea.Cmd

func (*Model) StartTransfer

func (m *Model) StartTransfer()

func (Model) Update

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

func (Model) View

func (m Model) View() string

type Option

type Option func(*Model)

Jump to

Keyboard shortcuts

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