mirror of https://github.com/Xhofe/alist
27 lines
481 B
Go
27 lines
481 B
Go
![]() |
package mega
|
||
|
|
||
|
import (
|
||
|
"github.com/alist-org/alist/v3/internal/driver"
|
||
|
"github.com/alist-org/alist/v3/internal/op"
|
||
|
)
|
||
|
|
||
|
type Addition struct {
|
||
|
// Usually one of two
|
||
|
//driver.RootPath
|
||
|
//driver.RootID
|
||
|
Email string `json:"email" required:"true"`
|
||
|
Password string `json:"password" required:"true"`
|
||
|
}
|
||
|
|
||
|
var config = driver.Config{
|
||
|
Name: "Mega_nz",
|
||
|
LocalSort: true,
|
||
|
OnlyLocal: true,
|
||
|
}
|
||
|
|
||
|
func init() {
|
||
|
op.RegisterDriver(config, func() driver.Driver {
|
||
|
return &Mega{}
|
||
|
})
|
||
|
}
|