This commit is contained in:
+13
-7
@@ -5,20 +5,24 @@ Provides a unified interface for reading video metadata from different backends:
|
||||
- LeaderStorage: Discovers and connects to the KV leader (recommended)
|
||||
- RedisStorage: Reads from Redis with direct URL (legacy)
|
||||
|
||||
Also provides service discovery for inter-service communication.
|
||||
Also provides service registration for inter-service communication.
|
||||
Service discovery is centralized in meta-core.
|
||||
"""
|
||||
|
||||
from .provider import StorageProvider, VideoMetadata
|
||||
from .redis_storage import RedisStorage
|
||||
from .leader_storage import LeaderStorage
|
||||
from .leader_client import LeaderClient, LeaderLockInfo
|
||||
from .service_discovery import (
|
||||
ServiceDiscovery,
|
||||
from .leader_client import LeaderClient, LeaderLockInfo, get_leader_client
|
||||
from .service_registration import (
|
||||
ServiceRegistration,
|
||||
ServiceInfo,
|
||||
get_service_discovery,
|
||||
init_service_discovery
|
||||
get_service_discovery, # Kept for backward compatibility
|
||||
init_service_discovery # Kept for backward compatibility
|
||||
)
|
||||
|
||||
# Backward compatibility alias
|
||||
ServiceDiscovery = ServiceRegistration
|
||||
|
||||
__all__ = [
|
||||
'StorageProvider',
|
||||
'VideoMetadata',
|
||||
@@ -26,7 +30,9 @@ __all__ = [
|
||||
'LeaderStorage',
|
||||
'LeaderClient',
|
||||
'LeaderLockInfo',
|
||||
'ServiceDiscovery',
|
||||
'get_leader_client',
|
||||
'ServiceRegistration',
|
||||
'ServiceDiscovery', # Backward compatibility alias
|
||||
'ServiceInfo',
|
||||
'get_service_discovery',
|
||||
'init_service_discovery',
|
||||
|
||||
Reference in New Issue
Block a user