messaging

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMessagingModule

func NewMessagingModule(opts ...Option) fx.Option

NewMessagingModule provides messaging functionality: kafka, outbox, consumer, producer.

Options:

  • WithKafkaConfig: provide static Kafka Config (useful for tests)

Example usage:

// Production - loads config from viper
messaging.NewMessagingModule()

// Testing - with static config
messaging.NewMessagingModule(
    messaging.WithKafkaConfig(config.Config{...}),
)

Types

type Option

type Option func(*messagingOptions)

Option is a functional option for configuring the messaging module.

func WithKafkaConfig

func WithKafkaConfig(cfg config.Config) Option

WithKafkaConfig provides a static Kafka Config (useful for tests). When set, the Kafka configuration will not be loaded from viper.

Directories

Path Synopsis
kafka
events
Package events provides common event types and interfaces for messaging.
Package events provides common event types and interfaces for messaging.
serde
Package serde provides format-agnostic interfaces for message serialization.
Package serde provides format-agnostic interfaces for message serialization.
patterns

Jump to

Keyboard shortcuts

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