implementations

package
v1.1.76 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2023 License: Apache-2.0 Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCloudEventsPublisher

func NewCloudEventsPublisher(sender interfaces.Sender, scope promutils.Scope, eventTypes []string) interfaces.Publisher

Types

type KafkaSender

type KafkaSender struct {
	Client cloudevents.Client
}

KafkaSender Implementation of Sender

func (*KafkaSender) Send

func (s *KafkaSender) Send(ctx context.Context, notificationType string, event cloudevents.Event) error

type PubSubSender

type PubSubSender struct {
	Pub pubsub.Publisher
}

PubSubSender Implementation of Sender

func (*PubSubSender) Send

func (s *PubSubSender) Send(ctx context.Context, notificationType string, event cloudevents.Event) error

type Publisher

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

Publisher This event publisher acts to asynchronously publish workflow execution events.

func (*Publisher) Publish

func (p *Publisher) Publish(ctx context.Context, notificationType string, msg proto.Message) error

type Receiver

type Receiver = string
const (
	Kafka Receiver = "Kafka"
)

Jump to

Keyboard shortcuts

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