openfaas / connector-sdk

SDK for connecting events to functions
MIT License
54 stars 25 forks source link

Support functions subscribing to multiple topics #20

Closed rgee0 closed 5 years ago

rgee0 commented 5 years ago

Enable support for adding multiple topic values to a function's topic annotation.

Multiple topics could be defined using a CSV value so that it follows the pattern for specifying multiple topics in the connector.

The Build method which compiles a map of topic names and functions that have advertised to receive messages on said topic would need to be changed so that rather than taking the full annotation value as the topic name it instead splits the annotation value on commas and uses each of the consequent values as topic names.