Documentation
¶
Index ¶
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) PublishToTopic ¶ added in v1.0.39
Publish message to a topic exchange
Click to show internal directories.
Click to hide internal directories.