rabbitmqv2

package
v0.0.0-...-2c15619 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEventHandlerResolve

func NewEventHandlerResolve(rbt *rmqc.RabbitMQ) ddd.IEventDispatcher

func NewRabbitMQEventDispatcher

func NewRabbitMQEventDispatcher(rbt *rmqc.RabbitMQ) ddd.IEventDispatcher

func NewRabbitMQResolve

func NewRabbitMQResolve(config Config) *rmqc.RabbitMQ

Types

type Config

type Config struct {
	Host           string
	Port           string
	VHost          string
	Username       string
	Password       string
	ConnectionName string
	Reconnect      struct {
		MaxAttempt int
		Interval   time.Duration
	}
}

type RabbitMQEventDispatcher

type RabbitMQEventDispatcher struct {
	// contains filtered or unexported fields
}

func (RabbitMQEventDispatcher) Dispatch

func (dispatcher RabbitMQEventDispatcher) Dispatch(ctx context.Context, event ddd.IBaseEvent) error

Jump to

Keyboard shortcuts

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