Documentation ¶
Index ¶
Constants ¶
View Source
const ( PrometheusSubsystemName = "dragonfly_dfdaemon_upload" OtelServiceName = "dragonfly-dfdaemon-upload" )
View Source
const (
RouterGroupDownload = "/download"
)
Variables ¶
View Source
var GinLogFileName = "gin-upload.log"
Functions ¶
func WithCertify ¶ added in v2.0.6
func WithLimiter ¶
WithLimiter sets upload rate limiter, the burst size must be bigger than piece size.
Types ¶
type DownloadParams ¶ added in v2.0.4
type DownloadQuery ¶ added in v2.1.55
type DownloadQuery struct {
PeerID string `form:"peerId" binding:"required"`
}
type Manager ¶
type Manager interface { // Started upload manager server. Serve(lis net.Listener) error // Stop upload manager server. Stop() error }
Manager is the interface used for upload task.
func NewUploadManager ¶
func NewUploadManager(cfg *config.DaemonOption, storageManager storage.Manager, logDir string, opts ...Option) (Manager, error)
New returns a new Manager instance.
Click to show internal directories.
Click to hide internal directories.