95 lines
2.2 KiB
Python
95 lines
2.2 KiB
Python
"""多渠道网关公共 API。"""
|
|
|
|
from yuxi.channel.bootstrap import ChannelGatewayBootstrap
|
|
from yuxi.channel.exceptions import (
|
|
ChannelConfigurationError,
|
|
ChannelError,
|
|
ChannelErrorClassification,
|
|
ChannelNotLoggedInError,
|
|
ChannelNotSupportedError,
|
|
ChannelPermanentError,
|
|
ChannelRateLimitedError,
|
|
ChannelRetryableError,
|
|
ChannelTransportReconnectRequested,
|
|
ChannelValidationError,
|
|
)
|
|
from yuxi.channel.message import ChannelGateway, InboundMessage, MessageDeduper, RunAcceptedResponse
|
|
from yuxi.channel.outbound import OutboundDispatcher
|
|
from yuxi.channel.plugins import (
|
|
BindingRoute,
|
|
ChannelCapability,
|
|
ChannelHealthStatus,
|
|
ChannelMeta,
|
|
ChannelPlugin,
|
|
ChannelRegistry,
|
|
DeliveryMode,
|
|
InboundRequest,
|
|
MetaPort,
|
|
OutboundMessage,
|
|
TransportType,
|
|
create_channel_plugin_base,
|
|
define_channel_plugin_entry,
|
|
get_registry,
|
|
)
|
|
from yuxi.channel.ports import (
|
|
AuthPort,
|
|
BindingPort,
|
|
ConfigPort,
|
|
InboundPort,
|
|
LifecyclePort,
|
|
OutboundPort,
|
|
SecurityPort,
|
|
SessionPort,
|
|
StatusPort,
|
|
ThreadingPort,
|
|
TransportPort,
|
|
)
|
|
from yuxi.channel.routing import BindingRouter
|
|
from yuxi.channel.session import SessionManager
|
|
|
|
__all__ = [
|
|
"AuthPort",
|
|
"BindingPort",
|
|
"BindingRoute",
|
|
"BindingRouter",
|
|
"ChannelConfigurationError",
|
|
"ChannelCapability",
|
|
"ChannelError",
|
|
"ChannelErrorClassification",
|
|
"ChannelGateway",
|
|
"ChannelGatewayBootstrap",
|
|
"ChannelHealthStatus",
|
|
"ChannelMeta",
|
|
"ChannelNotLoggedInError",
|
|
"ChannelNotSupportedError",
|
|
"ChannelPermanentError",
|
|
"ChannelPlugin",
|
|
"ChannelRateLimitedError",
|
|
"ChannelRegistry",
|
|
"ChannelRetryableError",
|
|
"ChannelTransportReconnectRequested",
|
|
"ChannelValidationError",
|
|
"ConfigPort",
|
|
"DeliveryMode",
|
|
"InboundMessage",
|
|
"InboundPort",
|
|
"InboundRequest",
|
|
"LifecyclePort",
|
|
"MessageDeduper",
|
|
"MetaPort",
|
|
"OutboundDispatcher",
|
|
"OutboundMessage",
|
|
"OutboundPort",
|
|
"RunAcceptedResponse",
|
|
"SecurityPort",
|
|
"SessionManager",
|
|
"SessionPort",
|
|
"StatusPort",
|
|
"ThreadingPort",
|
|
"TransportPort",
|
|
"TransportType",
|
|
"create_channel_plugin_base",
|
|
"define_channel_plugin_entry",
|
|
"get_registry",
|
|
]
|