mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-11-16 19:56:51 +08:00
28 lines
351 B
Go
28 lines
351 B
Go
//go:build android && cmfa
|
|
|
|
package provider
|
|
|
|
import "time"
|
|
|
|
var (
|
|
suspended bool
|
|
)
|
|
|
|
type UpdatableProvider interface {
|
|
UpdatedAt() time.Time
|
|
}
|
|
|
|
func (rp *ruleSetProvider) UpdatedAt() time.Time {
|
|
return rp.Fetcher.UpdatedAt
|
|
}
|
|
|
|
func (rp *ruleSetProvider) Close() error {
|
|
rp.Fetcher.Destroy()
|
|
|
|
return nil
|
|
}
|
|
|
|
func Suspend(s bool) {
|
|
suspended = s
|
|
}
|