core

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2025 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func Run

func Run()

Types

type ProgressStream added in v0.15.0

type ProgressStream struct {
	// contains filtered or unexported fields
}

func NewProgressStream added in v0.15.0

func NewProgressStream(writer io.Writer, size int64, callback func(bytesRead, contentLength int64)) *ProgressStream

func (*ProgressStream) Write added in v0.15.0

func (ps *ProgressStream) Write(p []byte) (n int, err error)

type TaskLocalFile added in v0.12.0

type TaskLocalFile struct {
	// contains filtered or unexported fields
}

func NewTaskLocalFile added in v0.12.0

func NewTaskLocalFile(filePath string, fileSize int64, progressCallback func(bytesRead, contentLength int64)) (*TaskLocalFile, error)

func (*TaskLocalFile) Close added in v0.12.0

func (t *TaskLocalFile) Close() error

func (*TaskLocalFile) Read added in v0.12.0

func (t *TaskLocalFile) Read(p []byte) (n int, err error)

func (*TaskLocalFile) WriteAt added in v0.12.0

func (t *TaskLocalFile) WriteAt(p []byte, off int64) (int, error)

Jump to

Keyboard shortcuts

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