upload

package
v2.0.3-beta.4 Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PeerDownloadHTTPPathPrefix = "/download/"
)

Variables

This section is empty.

Functions

func WithLimiter

func WithLimiter(limiter *rate.Limiter) func(*uploadManager)

WithLimiter sets upload rate limiter, the burst size must be bigger than piece size

Types

type Manager

type Manager interface {
	Serve(lis net.Listener) error
	Stop() error
}

func NewUploadManager

func NewUploadManager(s storage.Manager, opts ...func(*uploadManager)) (Manager, error)

Jump to

Keyboard shortcuts

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