chore: add Count for ProxyProvider

This commit is contained in:
wwqgtxx
2024-09-09 09:15:37 +08:00
parent b1301b1b41
commit 595a575cde
2 changed files with 9 additions and 0 deletions

View File

@@ -71,6 +71,7 @@ type Provider interface {
type ProxyProvider interface {
Provider
Proxies() []constant.Proxy
Count() int
// Touch is used to inform the provider that the proxy is actually being used while getting the list of proxies.
// Commonly used in DialContext and DialPacketConn
Touch()