Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alist-org
GitHub Repository: alist-org/alist
Path: blob/main/drivers/gofile/meta.go
1986 views
1
package gofile
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.RootID
10
APIToken string `json:"api_token" required:"true" help:"Get your API token from your Gofile profile page"`
11
LinkExpiry int `json:"link_expiry" type:"number" default:"30" help:"Direct link cache duration in days. Set to 0 to disable caching"`
12
DirectLinkExpiry int `json:"direct_link_expiry" type:"number" default:"0" help:"Direct link expiration time in hours on Gofile server. Set to 0 for no expiration"`
13
}
14
15
var config = driver.Config{
16
Name: "Gofile",
17
DefaultRoot: "",
18
LocalSort: false,
19
OnlyProxy: false,
20
NoCache: false,
21
NoUpload: false,
22
}
23
24
func init() {
25
op.RegisterDriver(func() driver.Driver {
26
return &Gofile{}
27
})
28
}
29
30