feat: add UC driver (close #1127 in #4459)

Co-authored-by: lj98568 <lj98568@alibaba-inc.com>
Co-authored-by: Andy Hsu <i@nn.ci>
This commit is contained in:
zqxiaojin
2023-05-27 19:36:14 +08:00
committed by GitHub
parent ef68f84787
commit 89f76d7899
9 changed files with 89 additions and 56 deletions

View File

@ -19,7 +19,7 @@ type LinkArgs struct {
type Link struct {
URL string `json:"url"`
Header http.Header `json:"header"` // needed header
Header http.Header `json:"header"` // needed header (for url) or response header(for data or writer)
Data io.ReadCloser // return file reader directly
Status int // status maybe 200 or 206, etc
FilePath *string // local file, return the filepath