adapter

package
v0.0.0-...-9058691 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RmqConfig

type RmqConfig struct {
	URL      string
	WaitTime time.Duration
	Attempts int
}

type RmqConnection

type RmqConnection struct {
	ConsumerExchange string
	RmqConfig
	Connection *amqp.Connection
	Channel    *amqp.Channel
	Delivery   <-chan amqp.Delivery
}

func New

func New(consumerExchange string, cfg RmqConfig) *RmqConnection

func (*RmqConnection) AttemptsConnect

func (c *RmqConnection) AttemptsConnect() error

Jump to

Keyboard shortcuts

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