MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / proxyFileURL

Function proxyFileURL

server/mcp/fs_link.go:175–180  ·  view source on GitHub ↗
(ctx context.Context, reqPath string, meta *model.Meta, storage *model.Storage, linkType string)

Source from the content-addressed store, hash-verified

173}
174
175func proxyFileURL(ctx context.Context, reqPath string, meta *model.Meta, storage *model.Storage, linkType string) string {
176 if url := common.GenerateDownProxyURL(storage, reqPath); url != "" {
177 return url
178 }
179 return signedFileURL(ctx, "/p", reqPath, meta, linkType)
180}
181
182func signedFileURL(ctx context.Context, prefix, reqPath string, meta *model.Meta, linkType string) string {
183 query := url.Values{}

Callers 1

buildFSLinkInfoFunction · 0.85

Calls 2

GenerateDownProxyURLFunction · 0.92
signedFileURLFunction · 0.85

Tested by

no test coverage detected