Help us shape the future of Go! Take the 2026 Go Developer Survey

publisher

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: MIT Imports: 6 Imported by: 0

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