logmq

package
v0.1.0-alpha.2 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

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