github.com/metacubex/mihomo@v1.18.5/adapter/outboundgroup/patch_android.go (about) 1 //go:build android && cmfa 2 3 package outboundgroup 4 5 import ( 6 C "github.com/metacubex/mihomo/constant" 7 "github.com/metacubex/mihomo/constant/provider" 8 ) 9 10 type ProxyGroup interface { 11 C.ProxyAdapter 12 13 Providers() []provider.ProxyProvider 14 Proxies() []C.Proxy 15 Now() string 16 } 17 18 func (f *Fallback) Providers() []provider.ProxyProvider { 19 return f.providers 20 } 21 22 func (lb *LoadBalance) Providers() []provider.ProxyProvider { 23 return lb.providers 24 } 25 26 func (f *Fallback) Proxies() []C.Proxy { 27 return f.GetProxies(false) 28 } 29 30 func (lb *LoadBalance) Proxies() []C.Proxy { 31 return lb.GetProxies(false) 32 } 33 34 func (lb *LoadBalance) Now() string { 35 return "" 36 } 37 38 func (r *Relay) Providers() []provider.ProxyProvider { 39 return r.providers 40 } 41 42 func (r *Relay) Proxies() []C.Proxy { 43 return r.GetProxies(false) 44 } 45 46 func (r *Relay) Now() string { 47 return "" 48 } 49 50 func (s *Selector) Providers() []provider.ProxyProvider { 51 return s.providers 52 } 53 54 func (s *Selector) Proxies() []C.Proxy { 55 return s.GetProxies(false) 56 } 57 58 func (u *URLTest) Providers() []provider.ProxyProvider { 59 return u.providers 60 } 61 62 func (u *URLTest) Proxies() []C.Proxy { 63 return u.GetProxies(false) 64 }