2023-11-17 23:12:10 +08:00
|
|
|
//go:build android && cmfa
|
2023-11-17 01:19:20 +08:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|