Conduit v0.11.0 mix conduit.gen.subscriber View Source
Generates a subscriber for messages.
mix conduit.gen.subscriber NAME [--broker BROKER_MODULE]
Accepts the module name for the subscriber.
Command line options
--broker
- The broker that will use this subscriber. This defaults toAppNameQueue.Broker
. You can override the directory that files are created in by specifying a different broker module.
The generated files will contain:
- a subscriber in lib/my_app_queue/subscribers
- a subscriber_test in test/my_app_queue/subscribers