Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRPCRequest ¶
func NewRPCRequest(connection *Connection, body map[string]interface{}) (map[string]interface{}, error)
NewRPCRequest sends message to the RPC worker
func SendMessage ¶ added in v1.0.2
func SendMessage(connection *Connection, body map[string]interface{}) error
SendMessage sends message to the consumer
Types ¶
type Connection ¶
type Connection struct {
Host, Port, Username, Password, VirtualHost, QueueName string
}
Connection RabbitMQ
func (*Connection) New ¶
func (connection *Connection) New(serviceName string)
New set the RabbitMQ Connection
Click to show internal directories.
Click to hide internal directories.