publisher

package
v1.0.0-dev.151 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAnyErrorMiddleware

func NewAnyErrorMiddleware[T any](publisher *publisher.Publisher) (middleware.AnyErrorMiddleware[T], error)

func NewAnyErrorMiddlewareWithOptions

func NewAnyErrorMiddlewareWithOptions[T any](publisher *publisher.Publisher, options *Options) middleware.AnyErrorMiddleware[T]

Types

type DeadletterOptions

type DeadletterOptions struct {
	Enabled bool
	Subject string
	Errors  []string
}

type Options

type Options struct {
	Subject    string
	Deadletter DeadletterOptions
}

func NewOptions

func NewOptions() (*Options, error)

type Publisher

type Publisher[T any] struct {
	// contains filtered or unexported fields
}

func NewPublisher

func NewPublisher[T any](publisher *publisher.Publisher) (*Publisher[T], error)

func NewPublisherWithOptions

func NewPublisherWithOptions[T any](publisher *publisher.Publisher, options *Options) *Publisher[T]

func (*Publisher[T]) Exec

func (c *Publisher[T]) Exec(ctx *middleware.AnyErrorContext[T], exec middleware.AnyErrorExecFunc[T], fallbackFunc middleware.AnyErrorReturnFunc[T]) (T, error)

Jump to

Keyboard shortcuts

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