publisher

package
v1.0.0-beta.32 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsEnabled

func IsEnabled() bool

IsEnabled reports whether publisher middleware is enabled in the configuration.

func Module

func Module() fx.Option

Module returns fx module for initialization of event publisher middleware. Which depends on event wrapper provider module.

The module is only loaded once.

func NewEventPublisher

func NewEventPublisher(events *provider.EventWrapperProvider) cloudevents.Middleware

NewEventPublisher creates an event publisher middleware.

Types

type EventPublisher

type EventPublisher struct {
	cloudevents.UnimplementedMiddleware
	// contains filtered or unexported fields
}

EventPublisher represents an event publisher middleware.

func (*EventPublisher) AfterAll

func (p *EventPublisher) AfterAll(ctx context.Context, inouts []*cloudevents.InOut) (context.Context, error)

AfterAll publishes all output events after processing all handlers.

Jump to

Keyboard shortcuts

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