Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the RabbitMQ client that manages publishing and consuming
type Config ¶
type Config struct {
URL string `yaml:"url"`
ExchangeName string `yaml:"exchange_name"`
RetryDelay time.Duration `yaml:"retry_delay"`
}
func (*Config) ResetToDefault ¶
func (c *Config) ResetToDefault()
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func NewConnection ¶
func NewConnection( url string, logger xlog.Logger, ) *Connection
func (*Connection) Connect ¶
func (c *Connection) Connect() error
Connect establishes the connection to RabbitMQ
func (*Connection) GetChannel ¶
func (c *Connection) GetChannel() (*amqp091.Channel, error)
GetChannel returns a new channel from the connection
Click to show internal directories.
Click to hide internal directories.