Documentation ¶
Index ¶
- Constants
- type Consumer
- type ConsumerManager
- func (cm *ConsumerManager) DeliveredEvent(ctx context.Context, ev cloudevents.Event) (out *pb.TopicEventResponse, err error)
- func (cm *ConsumerManager) Register(consumerType, pubsubName, topicName string, consumer *Consumer) error
- func (cm *ConsumerManager) Unregister(consumerType, pubsubName, topicName string, consumer *Consumer) error
Constants ¶
View Source
const ( // SubscriptionResponseStatusSuccess means message is processed successfully. SubscriptionResponseStatusSuccess = "SUCCESS" // SubscriptionResponseStatusRetry means message to be retried by Dapr. SubscriptionResponseStatusRetry = "RETRY" // SubscriptionResponseStatusDrop means warning is logged and message is dropped. SubscriptionResponseStatusDrop = "DROP" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsumerManager ¶
type ConsumerManager struct {
// contains filtered or unexported fields
}
func Get ¶
func Get() *ConsumerManager
func (*ConsumerManager) DeliveredEvent ¶
func (cm *ConsumerManager) DeliveredEvent(ctx context.Context, ev cloudevents.Event) (out *pb.TopicEventResponse, err error)
func (*ConsumerManager) Register ¶
func (cm *ConsumerManager) Register(consumerType, pubsubName, topicName string, consumer *Consumer) error
func (*ConsumerManager) Unregister ¶
func (cm *ConsumerManager) Unregister(consumerType, pubsubName, topicName string, consumer *Consumer) error
Click to show internal directories.
Click to hide internal directories.