Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alist-org
GitHub Repository: alist-org/alist
Path: blob/main/drivers/115/meta.go
1986 views
1
package _115
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
Cookie string `json:"cookie" type:"text" help:"one of QR code token and cookie required"`
10
QRCodeToken string `json:"qrcode_token" type:"text" help:"one of QR code token and cookie required"`
11
QRCodeSource string `json:"qrcode_source" type:"select" options:"web,android,ios,tv,alipaymini,wechatmini,qandroid" default:"linux" help:"select the QR code device, default linux"`
12
PageSize int64 `json:"page_size" type:"number" default:"1000" help:"list api per page size of 115 driver"`
13
LimitRate float64 `json:"limit_rate" type:"float" default:"2" help:"limit all api request rate ([limit]r/1s)"`
14
driver.RootID
15
}
16
17
var config = driver.Config{
18
Name: "115 Cloud",
19
DefaultRoot: "0",
20
// OnlyProxy: true,
21
// OnlyLocal: true,
22
// NoOverwriteUpload: true,
23
}
24
25
func init() {
26
op.RegisterDriver(func() driver.Driver {
27
return &Pan115{}
28
})
29
}
30
31