Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ConcurrentFiles is the default number of files a transfer job may process at once. ConcurrentFiles = 50 // ConcurrentFileParts is the default job-wide cap for concurrent upload/download part work. ConcurrentFileParts = 50 // ConcurrentDirectoryList is the default number of local directory listing operations that may run at once. ConcurrentDirectoryList = 100 // AdaptiveUploadV2ConcurrentFiles is the V2 upload job-level file concurrency cap. // Adaptive upload V2 still controls HTTP part concurrency dynamically; this value prevents // large multi-file jobs from being serialized while the per-destination controller learns. // The default is documented in docs/adaptive-upload-v2-file-concurrency-cap.md. AdaptiveUploadV2ConcurrentFiles = 128 // AdaptiveUploadV2ConcurrentFileParts is the V2 upload HTTP part concurrency cap. // The adaptive manager treats this as a maximum, not a fixed target. AdaptiveUploadV2ConcurrentFileParts = 1024 )
Functions ¶
This section is empty.
Types ¶
type ConcurrencyManager ¶
type ConcurrencyManager struct {
*lib.ConstrainedWorkGroup
DownloadFilesAsSingleStream bool
}
func (ConcurrencyManager) Max ¶
func (c ConcurrencyManager) Max() int
func (ConcurrencyManager) New ¶
func (ConcurrencyManager) New(maxGoRoutines int, downloadFilesAsSingleStream ...bool) ConcurrencyManager
type Manager ¶
type Manager struct {
FilesManager ConcurrencyManager
FilePartsManager ConcurrencyManager
DirectoryListingManager ConcurrencyManager
}
func SharedDefault ¶ added in v3.3.130
func SharedDefault() *Manager
Click to show internal directories.
Click to hide internal directories.