upload

package
v2.0.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2021 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 big 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