github.com/metacubex/mihomo@v1.18.5/adapter/provider/patch_android.go (about) 1 //go:build android && cmfa 2 3 package provider 4 5 import ( 6 "time" 7 ) 8 9 var ( 10 suspended bool 11 ) 12 13 type UpdatableProvider interface { 14 UpdatedAt() time.Time 15 } 16 17 func (pp *proxySetProvider) UpdatedAt() time.Time { 18 return pp.Fetcher.UpdatedAt 19 } 20 21 func (pp *proxySetProvider) Close() error { 22 pp.healthCheck.close() 23 pp.Fetcher.Destroy() 24 25 return nil 26 } 27 28 func (cp *compatibleProvider) Close() error { 29 cp.healthCheck.close() 30 31 return nil 32 } 33 34 func Suspend(s bool) { 35 suspended = s 36 }