refactoring

This commit is contained in:
Boki 2025-06-22 07:13:09 -04:00
parent 3fb9df425c
commit 62a2f15dab
12 changed files with 670 additions and 13 deletions

View file

@ -0,0 +1,36 @@
/**
* Proxy Service Library
* Centralized proxy management and synchronization
*/
// Main classes
export { ProxyManager } from './proxy-manager';
export { ProxySyncService } from './proxy-sync';
// Types
export type {
ProxyInfo,
ProxyManagerConfig,
ProxySyncConfig,
ProxyStats
} from './types';
// Convenience functions
export {
getProxy,
getRandomProxy,
getAllProxies,
getWorkingProxies,
updateProxies,
getProxyStats
} from './proxy-manager';
export {
getProxySyncService,
startProxySync,
stopProxySync,
syncProxiesOnce
} from './proxy-sync';
// Default export
export { ProxyManager as default } from './proxy-manager';