MCPcopy
hub / github.com/AlistGo/alist / NewLimitedUploadStream

Function NewLimitedUploadStream

internal/driver/utils.go:38–44  ·  view source on GitHub ↗
(ctx context.Context, r io.Reader)

Source from the content-addressed store, hash-verified

36type RateLimitFile = stream.RateLimitFile
37
38func NewLimitedUploadStream(ctx context.Context, r io.Reader) *RateLimitReader {
39 return &RateLimitReader{
40 Reader: r,
41 Limiter: stream.ServerUploadLimit,
42 Ctx: ctx,
43 }
44}
45
46func NewLimitedUploadFile(ctx context.Context, f model.File) *RateLimitFile {
47 return &RateLimitFile{

Callers 15

PutMethod · 0.92
PutMethod · 0.92
PutMethod · 0.92
PutMethod · 0.92
putMethod · 0.92
PutMethod · 0.92
upLocalMethod · 0.92
upRemoteMethod · 0.92
upOneDriveMethod · 0.92
upS3Method · 0.92
PutMethod · 0.92
multipartUploadToOSSMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected