mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2024-11-15 13:41:23 +08:00
28 lines
345 B
Go
28 lines
345 B
Go
// +build android,cmfa
|
|
|
|
package provider
|
|
|
|
import "time"
|
|
|
|
var (
|
|
suspended bool
|
|
)
|
|
|
|
type UpdatableProvider interface {
|
|
UpdatedAt() time.Time
|
|
}
|
|
|
|
func (f *ruleSetProvider) UpdatedAt() time.Time {
|
|
return f.Fetcher.UpdatedAt
|
|
}
|
|
|
|
func (rp *ruleSetProvider) Close() error {
|
|
rp.Fetcher.Destroy()
|
|
|
|
return nil
|
|
}
|
|
|
|
func Suspend(s bool) {
|
|
suspended = s
|
|
}
|