Skip to main content

emit_group_events_fanout_do

Function emit_group_events_fanout_do 

Source
pub fn emit_group_events_fanout_do(
    key: &str,
    publishers: &[&str],
    events: &EventPlan,
) -> TsProgram
Expand description

#3562 (G3-1): the one events fan-out of a [deploy.workers.<key>] group, serving every publishing member. publishers is the publishing members’ names; each one’s routes are its events’ in events, as emit_events_fanout_do takes them. A member tags each event it emits with its own name (publisher), because two members may declare an event of one name; the table is keyed <publisher>/<type>, and a delivery is signed as the publisher the event names.