mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2024-11-17 06:31:17 +08:00
37 lines
468 B
Go
37 lines
468 B
Go
//go:build android && cmfa
|
|
|
|
package provider
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
var (
|
|
suspended bool
|
|
)
|
|
|
|
type UpdatableProvider interface {
|
|
UpdatedAt() time.Time
|
|
}
|
|
|
|
func (pp *proxySetProvider) UpdatedAt() time.Time {
|
|
return pp.Fetcher.UpdatedAt
|
|
}
|
|
|
|
func (pp *proxySetProvider) Close() error {
|
|
pp.healthCheck.close()
|
|
pp.Fetcher.Destroy()
|
|
|
|
return nil
|
|
}
|
|
|
|
func (cp *compatibleProvider) Close() error {
|
|
cp.healthCheck.close()
|
|
|
|
return nil
|
|
}
|
|
|
|
func Suspend(s bool) {
|
|
suspended = s
|
|
}
|