implementations

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

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 CloudEventWrappedPublisher

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

func (*CloudEventWrappedPublisher) Publish

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

func (*CloudEventWrappedPublisher) TransformNodeExecutionEvent

func (c *CloudEventWrappedPublisher) TransformNodeExecutionEvent(ctx context.Context, rawEvent *event.NodeExecutionEvent) (*event.CloudEventNodeExecution, error)

func (*CloudEventWrappedPublisher) TransformTaskExecutionEvent

func (c *CloudEventWrappedPublisher) TransformTaskExecutionEvent(ctx context.Context, rawEvent *event.TaskExecutionEvent) (*event.CloudEventTaskExecution, error)

func (*CloudEventWrappedPublisher) TransformWorkflowExecutionEvent

func (c *CloudEventWrappedPublisher) TransformWorkflowExecutionEvent(ctx context.Context, rawEvent *event.WorkflowExecutionEvent) (*event.CloudEventWorkflowExecution, error)

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