uploader

package
v0.0.0-...-1eca5ee Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2026 License: MIT Imports: 16 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithMaxChunkGroup

func WithMaxChunkGroup(maxChunkGroup int) *maxChunkGroupOption

WithMaxChunkGroup specifies how many 256KiB chunks can be uploaded at a time. Raising this value may increase RAM usage, and cost more if we have to retry blocks.

The default value is 64 (16MiB groups)

Types

type Option

type Option interface {
	Apply(s *settings)
}

type ProgressListenerFunc

type ProgressListenerFunc func(count int64)

ProgressListenerFunc is called with a total number of bytes processed.

type ResumableUpload

type ResumableUpload interface {
	io.WriteCloser
	SetConsumer(consumer *state.Consumer)
	SetProgressListener(progressListener ProgressListenerFunc)
}

ResumableUpload represents a resumable upload session to google cloud storage.

func NewResumableUpload

func NewResumableUpload(uploadURL string, opts ...Option) ResumableUpload

NewResumableUpload starts a new resumable upload session targeting the specified Google Cloud Storage uploadURL.

Jump to

Keyboard shortcuts

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