Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alist-org
GitHub Repository: alist-org/alist
Path: blob/main/drivers/doubao_new/meta.go
2346 views
1
package doubao_new
2
3
import (
4
"github.com/alist-org/alist/v3/internal/driver"
5
"github.com/alist-org/alist/v3/internal/op"
6
)
7
8
type Addition struct {
9
// Usually one of two
10
driver.RootID
11
// define other
12
Authorization string `json:"authorization" help:"DPoP access token (Authorization header value); optional if present in cookie"`
13
Dpop string `json:"dpop" help:"DPoP header value; optional if present in cookie"`
14
Cookie string `json:"cookie" help:"Optional cookie; only used to extract authorization/dpop tokens"`
15
Debug bool `json:"debug" help:"Enable debug logs for upload"`
16
}
17
18
var config = driver.Config{
19
Name: "DoubaoNew",
20
LocalSort: true,
21
OnlyLocal: false,
22
OnlyProxy: false,
23
NoCache: false,
24
NoUpload: false,
25
NeedMs: false,
26
DefaultRoot: "",
27
CheckStatus: false,
28
Alert: "",
29
NoOverwriteUpload: false,
30
}
31
32
func init() {
33
op.RegisterDriver(func() driver.Driver {
34
return &DoubaoNew{}
35
})
36
}
37
38