Documentation
¶
Index ¶
- func TestRabbitMQConnection(config Config) error
- type Config
- type RabbitMQ
- func (r *RabbitMQ) Close()
- func (r *RabbitMQ) CloseChannel()
- func (r *RabbitMQ) CloseConnect()
- func (r *RabbitMQ) GetChannel() *amqp.Channel
- func (r *RabbitMQ) GetConnection() *amqp.Connection
- func (r *RabbitMQ) Publish(data interface{}) error
- func (r *RabbitMQ) PublishToTopic(data interface{}, exchangeName, routingKey string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TestRabbitMQConnection ¶
TestRabbitMQConnection tries to connect to specified rabbitQM broker
Types ¶
type Config ¶
type Config interface { GetHost() string GetPort() int GetUser() string GetPassword() string GetDatabase() string }
Config Interface With Methods to be a database config
type RabbitMQ ¶
type RabbitMQ struct {
// contains filtered or unexported fields
}
func NewRabbitMQ ¶
NewRabbitMQ creates a nem instance on RabbitMQ
func NewRabbitTopic ¶ added in v1.0.39
func (*RabbitMQ) Close ¶
func (r *RabbitMQ) Close()
Close closes the rabbit connection and the channel
func (*RabbitMQ) CloseChannel ¶
func (r *RabbitMQ) CloseChannel()
CloseChannel closes the rabbit channel
func (*RabbitMQ) CloseConnect ¶
func (r *RabbitMQ) CloseConnect()
CloseConnect closes the rabbit connection
func (*RabbitMQ) GetChannel ¶
func (*RabbitMQ) GetConnection ¶ added in v1.0.41
func (r *RabbitMQ) GetConnection() *amqp.Connection
func (*RabbitMQ) PublishToTopic ¶ added in v1.0.39
Publish message to a topic exchange
Click to show internal directories.
Click to hide internal directories.