Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alist-org
GitHub Repository: alist-org/alist
Path: blob/main/drivers/alist_v3/meta.go
1986 views
1
package alist_v3
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
driver.RootPath
10
Address string `json:"url" required:"true"`
11
MetaPassword string `json:"meta_password"`
12
Username string `json:"username"`
13
Password string `json:"password"`
14
Token string `json:"token"`
15
PassUAToUpsteam bool `json:"pass_ua_to_upsteam" default:"true"`
16
ForwardArchiveReq bool `json:"forward_archive_requests" default:"true"`
17
}
18
19
var config = driver.Config{
20
Name: "AList V3",
21
LocalSort: true,
22
DefaultRoot: "/",
23
CheckStatus: true,
24
ProxyRangeOption: true,
25
}
26
27
func init() {
28
op.RegisterDriver(func() driver.Driver {
29
return &AListV3{}
30
})
31
}
32
33