implementations

package
v1.10.7-b2 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 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

func NewCloudEventsWrappedPublisher added in v1.10.7

func NewCloudEventsWrappedPublisher(
	db repositoryInterfaces.Repository, sender interfaces.Sender, scope promutils.Scope, storageClient *storage.DataStore, urlData dataInterfaces.RemoteURLInterface, remoteDataConfig runtimeInterfaces.RemoteDataConfig) interfaces.Publisher

Types

type CloudEventWrappedPublisher added in v1.10.7

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

func (*CloudEventWrappedPublisher) Publish added in v1.10.7

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

func (*CloudEventWrappedPublisher) TransformNodeExecutionEvent added in v1.10.7

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

func (*CloudEventWrappedPublisher) TransformTaskExecutionEvent added in v1.10.7

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

func (*CloudEventWrappedPublisher) TransformWorkflowExecutionEvent added in v1.10.7

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