Skip to main content

Crate walrus_channel_router

Crate walrus_channel_router 

Source
Expand description

Channel router — connects platform channels and routes messages to agents.

Owns the lifecycle of all channel connections: building the routing table, connecting to platforms (Telegram, etc.), and running message loops. The daemon passes a callback for agent dispatch, keeping this crate decoupled from the runtime.

Structs§

ChannelConfig
Channel configuration entry.
ChannelMessage
A message received from or sent to a channel.
ChannelRouter
Routes channel events to agents via three-tier fallback.
ChannelSender
A cloneable sender extracted from a ChannelHandle.
RoutingRule
A routing rule mapping platform/channel to an agent.

Enums§

Platform
Messaging platform identifier.

Functions§

build_router
Build a ChannelRouter from channel config entries.
parse_platform
Parse a platform name string into a Platform enum.
spawn_channels
Connect all configured channels and spawn message loops.