Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alist-org
GitHub Repository: alist-org/alist
Path: blob/main/drivers/cloudreve/meta.go
1986 views
1
package cloudreve
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
Address string `json:"address" required:"true"`
13
Username string `json:"username"`
14
Password string `json:"password"`
15
Cookie string `json:"cookie"`
16
CustomUA string `json:"custom_ua"`
17
EnableThumbAndFolderSize bool `json:"enable_thumb_and_folder_size"`
18
}
19
20
var config = driver.Config{
21
Name: "Cloudreve",
22
DefaultRoot: "/",
23
}
24
25
func init() {
26
op.RegisterDriver(func() driver.Driver {
27
return &Cloudreve{}
28
})
29
}
30
31