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

publisher

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 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.

Jump to

Keyboard shortcuts

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