interfaces

package
v1.1.22 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2022 License: Apache-2.0 Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Publisher

type Publisher interface {
	// Publish The notificationType is inferred from the Notification object in the Execution Spec.
	Publish(ctx context.Context, notificationType string, msg proto.Message) error
}

Publisher Defines the interface for Publishing execution event to other services (AWS pub/sub, Kafka).

type Sender

type Sender interface {
	// Send a cloud event to other services (AWS pub/sub, Kafka).
	Send(ctx context.Context, notificationType string, event cloudevents.Event) error
}

Sender Defines the interface for sending cloudevents.

Jump to

Keyboard shortcuts

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