Commit Graph

3 Commits

Author SHA1 Message Date
Michael Collins 31346f0d54
Introduce interface for topic event subscriber (#661)
* Introduce interface for topic event subscriber

I introduced the TopicEventSubscriber interface to allow for
subscribers to be implemented as structs. This will allow subscribers
to be initialized with any settings or dependencies needed to process
incoming events.

I converted TopicEventHandler to implement TopicEventSubscriber. I
revised TopicRegistrar to store TopicEventSubscribers instead of
TopicEventHandlers.

Resolves #660

Signed-off-by: Michael Collins <mfcollins3@me.com>

* Update go-service documentation

I added examples of how to use the TopicEventSubscriber interface to
create a new subscriber for both HTTP and gRPC services.

Signed-off-by: Michael Collins <mfcollins3@me.com>

---------

Signed-off-by: Michael Collins <mfcollins3@me.com>
2024-12-09 08:54:56 -08:00
Phil Kedy 40d8a4eabe
Pub/Sub routing support (#227)
Signed-off-by: Phil Kedy <phil.kedy@gmail.com>
2022-01-06 10:19:24 -08:00
greenie-msft fc67f725e0
Change directory name from go-server to go-service (#185) 2021-07-13 11:17:05 -07:00