Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alist-org
GitHub Repository: alist-org/alist
Path: blob/main/drivers/halalcloud/meta.go
1987 views
1
package halalcloud
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.RootPath
11
// define other
12
RefreshToken string `json:"refresh_token" required:"true" help:"login type is refresh_token,this is required"`
13
UploadThread string `json:"upload_thread" default:"3" help:"1 <= thread <= 32"`
14
15
AppID string `json:"app_id" required:"true" default:"alist/10001"`
16
AppVersion string `json:"app_version" required:"true" default:"1.0.0"`
17
AppSecret string `json:"app_secret" required:"true" default:"bR4SJwOkvnG5WvVJ"`
18
}
19
20
var config = driver.Config{
21
Name: "HalalCloud",
22
LocalSort: false,
23
OnlyLocal: true,
24
OnlyProxy: true,
25
NoCache: false,
26
NoUpload: false,
27
NeedMs: false,
28
DefaultRoot: "/",
29
CheckStatus: false,
30
Alert: "",
31
NoOverwriteUpload: false,
32
}
33
34
func init() {
35
op.RegisterDriver(func() driver.Driver {
36
return &HalalCloud{}
37
})
38
}
39
40