2023-02-14 19:17:21 +08:00
|
|
|
package aliyundrive
|
|
|
|
|
|
|
|
import (
|
|
|
|
"crypto/ecdsa"
|
|
|
|
|
|
|
|
"github.com/alist-org/alist/v3/pkg/generic_sync"
|
|
|
|
)
|
|
|
|
|
|
|
|
type State struct {
|
|
|
|
deviceID string
|
|
|
|
signature string
|
2023-02-16 22:12:19 +08:00
|
|
|
retry int
|
2023-02-14 19:17:21 +08:00
|
|
|
privateKey *ecdsa.PrivateKey
|
|
|
|
}
|
|
|
|
|
|
|
|
var global = generic_sync.MapOf[string, *State]{}
|