github.com/metacubex/mihomo@v1.18.5/rules/provider/patch_android.go (about)

     1  //go:build android && cmfa
     2  
     3  package provider
     4  
     5  import "time"
     6  
     7  var (
     8  	suspended bool
     9  )
    10  
    11  type UpdatableProvider interface {
    12  	UpdatedAt() time.Time
    13  }
    14  
    15  func (f *ruleSetProvider) UpdatedAt() time.Time {
    16  	return f.Fetcher.UpdatedAt
    17  }
    18  
    19  func (rp *ruleSetProvider) Close() error {
    20  	rp.Fetcher.Destroy()
    21  
    22  	return nil
    23  }
    24  
    25  func Suspend(s bool) {
    26  	suspended = s
    27  }