examples/pubsub-simple/subscriber.rb
# Dapr will call this method to get the list of topics the app
# wants to subscribe to. In this example, we are telling Dapr
# To subscribe to a topic named TOPIC_A
Dapr will call this method to get the list of topics the app
wants to subscribe to. In this example, we are telling Dapr
To subscribe to a topic named TOPIC_A
Dapr will call this method to get the list of topics the app wants to subscribe to . In this example we are telling Dapr To subscribe to a topic named TOPIC_A
def list_topic_subscriptions(_empty, _call)
    pubsub_name = "pubsub"
    RuntimeV1::ListTopicSubscriptionsResponse.new(
        subscriptions: Array(RuntimeV1::TopicSubscription.new(pubsub_name: pubsub_name, topic: "TOPIC_A")))
  end
def list_topic_subscriptions ( _empty , _call ) pubsub_name = "pubsub" RuntimeV1 :: ListTopicSubscriptionsResponse . new ( subscriptions : Array ( RuntimeV1 :: TopicSubscription . new ( pubsub_name : pubsub_name , topic : "TOPIC_A" ) ) ) end
Dapr will call this method to get the list of topics the app
wants to subscribe to.
Dapr will call this method to get the list of topics the app wants to subscribe to .
# Name of the configured pubsub component
_empty
<not_specific>
_call
<not_specific>