Clash.Meta/rules/provider/patch_android.go

28 lines
345 B
Go
Raw Normal View History

2023-11-17 10:18:14 +08:00
// +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
}