Documentation ¶
Index ¶
Constants ¶
View Source
const ( PrometheusSubsystemName = "dragonfly_dfdaemon_upload" OtelServiceName = "dragonfly-dfdaemon-upload" )
Variables ¶
View Source
var GinLogFileName = "gin-upload.log"
Functions ¶
func WithLimiter ¶
WithLimiter sets upload rate limiter, the burst size must be bigger than piece size.
Types ¶
type DownalodQuery ¶ added in v2.0.4
type DownalodQuery struct {
PeerID string `form:"peerId" binding:"required"`
}
type DownloadParams ¶ added in v2.0.4
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 instence.
Click to show internal directories.
Click to hide internal directories.