publisher

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: MIT Imports: 6 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	Root = "boost.wrapper.publisher"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver interface {
	Publish(context.Context, []*cloudevents.Event) ([]PublishOutput, error)
}

type PublishOutput

type PublishOutput struct {
	Event *cloudevents.Event
	Error error
}

type Publisher

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

func New

func (*Publisher) Publish

func (p *Publisher) Publish(ctx context.Context, events []*cloudevents.Event) error

Publish publishes events and returns an error when the driver fails or when any event fails. Per-event failures are turned into the error only after the middleware chain, so middlewares still see them as outputs.

Directories

Path Synopsis
driver
contrib/aws/kinesis/v1
Package kinesis is a publisher driver that puts each event in the Kinesis stream named by the event subject.
Package kinesis is a publisher driver that puts each event in the Kinesis stream named by the event subject.
contrib/aws/sns/v1
Package sns is a publisher driver that sends each event to the SNS topic whose ARN is the event subject.
Package sns is a publisher driver that sends each event to the SNS topic whose ARN is the event subject.
contrib/aws/sqs/v1
Package sqs is a publisher driver that sends each event to the SQS queue named by the event subject.
Package sqs is a publisher driver that sends each event to the SQS queue named by the event subject.

Jump to

Keyboard shortcuts

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