dapr

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

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 Consumer

type Consumer struct {
	// contains filtered or unexported fields
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL