logmq

package
v0.1.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: Apache-2.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMessageHandler

func NewMessageHandler(logger *otelzap.Logger, batcher batcher) consumer.MessageHandler

func WithQueue

func WithQueue(queueConfig *mqs.QueueConfig) func(opts *LogMQOption)

Types

type LogAWSInfra

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

func (*LogAWSInfra) DeclareInfrastructure

func (i *LogAWSInfra) DeclareInfrastructure(ctx context.Context) error

type LogInfra

type LogInfra interface {
	DeclareInfrastructure(ctx context.Context) error
}

func NewLogAWSInfra

func NewLogAWSInfra(config *mqs.AWSSQSConfig) LogInfra

func NewLogRabbitMQInfra

func NewLogRabbitMQInfra(config *mqs.RabbitMQConfig) LogInfra

type LogMQ

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

func New

func New(opts ...func(opts *LogMQOption)) *LogMQ

func (*LogMQ) Init

func (q *LogMQ) Init(ctx context.Context) (func(), error)

func (*LogMQ) Publish

func (q *LogMQ) Publish(ctx context.Context, event models.DeliveryEvent) error

func (*LogMQ) Subscribe

func (q *LogMQ) Subscribe(ctx context.Context) (mqs.Subscription, error)

type LogMQOption

type LogMQOption struct {
	QueueConfig *mqs.QueueConfig
}

type LogRabbitMQInfra

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

func (*LogRabbitMQInfra) DeclareInfrastructure

func (i *LogRabbitMQInfra) DeclareInfrastructure(ctx context.Context) error

Jump to

Keyboard shortcuts

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