dapr

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2022 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMessageForbidden     = errors.New("message forbidden by access controls")
	ErrNoPubsubOrTopic      = errors.New("no pubsub name or topic given")
	ErrDeliveryFailed       = errors.New("delivery failed")
	ErrUnexpectedStatusCode = errors.New("unexpected status code")
)
View Source
var (
	ErrSubscriberNotFound = fmt.Errorf("subscriber not found")
)

Functions

func NewDaprPublisher

func NewDaprPublisher(config DaprPublisherConfig) *daprPublisher

NewDaprPublisher creates a new publisher instance.

func NewDaprSubscriberRegistry

func NewDaprSubscriberRegistry(config DaprSubscriberRegistryConfig) *daprSubscriberRegistry

NewDaprSubscriberRegistry creates a new subscriber registry instance.

Types

type DaprPublisherConfig

type DaprPublisherConfig struct {
	Host   string
	Pubsub string
}

DaprPublisherConfig is the configuration struct for a publisher.

type DaprSubscriberRegistryConfig

type DaprSubscriberRegistryConfig struct {
	App    *fiber.App
	Pubsub string
}

DaprSubscriberRegistryConfig is the configuration struct for a subscriber registry.

Jump to

Keyboard shortcuts

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