Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alist-org
GitHub Repository: alist-org/alist
Path: blob/main/drivers/mega/meta.go
1986 views
1
package mega
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
//driver.RootID
12
Email string `json:"email" required:"true"`
13
Password string `json:"password" required:"true"`
14
TwoFACode string `json:"two_fa_code" required:"false" help:"2FA 6-digit code, filling in the 2FA code alone will not support reloading driver"`
15
TwoFASecret string `json:"two_fa_secret" required:"false" help:"2FA secret"`
16
}
17
18
var config = driver.Config{
19
Name: "Mega_nz",
20
LocalSort: true,
21
OnlyLocal: true,
22
}
23
24
func init() {
25
op.RegisterDriver(func() driver.Driver {
26
return &Mega{}
27
})
28
}
29
30