MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / Url

Method Url

pkg/filemanager/manager/entitysource/entitysource.go:57–57  ·  view source on GitHub ↗

Url generates a download url for the entity.

(ctx context.Context, opts ...EntitySourceOption)

Source from the content-addressed store, hash-verified

55
56 // Url generates a download url for the entity.
57 Url(ctx context.Context, opts ...EntitySourceOption) (*EntityUrl, error)
58 // Serve serves the entity to the client, with supports on Range header and If- cache control.
59 Serve(w http.ResponseWriter, r *http.Request, opts ...EntitySourceOption)
60 // Entity returns the entity of the source.

Callers 11

UrlMethod · 0.95
UrlMethod · 0.95
GetDirectLinkMethod · 0.95
GetEntityUrlsMethod · 0.95
GetMethod · 0.65
ExtractMethod · 0.65
GenerateMethod · 0.65
handleGetHeadPostFunction · 0.65
AdminGetFileUrlFunction · 0.65
AdminGetEntityUrlFunction · 0.65

Implementers 1

entitySourcepkg/filemanager/manager/entitysource/e

Calls

no outgoing calls

Tested by

no test coverage detected