(ctx context.Context, reqPath string, meta *model.Meta, storage *model.Storage, linkType string)
| 173 | } |
| 174 | |
| 175 | func 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 | |
| 182 | func signedFileURL(ctx context.Context, prefix, reqPath string, meta *model.Meta, linkType string) string { |
| 183 | query := url.Values{} |
no test coverage detected