mirror of
https://github.com/tobychui/zoraxy.git
synced 2025-09-15 00:29:48 +02:00

this design (as opposed to adding a Source field to the Event struct) requires fewer changes to existing APIs while still supporting the two primary cases for event sources: 1. an event that always has the same source can just return a hard-coded string 2. an event that can come from multiple components (or from plugins) can have a source field that gets returned by this function