MCPcopy
hub / github.com/OpenListTeam/OpenList / NewLimitedUploadStream

Function NewLimitedUploadStream

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

Source from the content-addressed store, hash-verified

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

Callers 15

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
uploadMethod · 0.92
PutMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected