The MrAndreID/GoRabbitMQ
package is a collection of functions in the go language for RabbitMQ.
To use The MrAndreID/GoRabbitMQ
package, you must follow the steps below:
go get -u github.com/MrAndreID/gorabbitmq
import "github.com/MrAndreID/gohelpers"
err := gorabbitmq.Client("Andrea Adam", gorabbitmq.Connection{"127.0.0.1", "5672", "account", "account", "account"}, gorabbitmq.QueueSetting{"account", true, false, false, false, nil}, gorabbitmq.OtherSetting{"account", "60000", false, false, 18})
if err != nil {
gohelpers.HandleResponse(response, 400, "looks like something went wrong", err)
return
}
import "services/controllers"
gorabbitmq.Server(gorabbitmq.Connection{"127.0.0.1", "5672", "account", "account", "account"}, gorabbitmq.QueueSetting{"account", true, false, false, false, nil}, gorabbitmq.ConsumeSetting{"", false, false, false, false, nil}, gorabbitmq.OtherSetting{"account", "60000", false, false, 18}, controllers.HandleRequest)
import "github.com/MrAndreID/gohelpers"
result, err := gorabbitmq.RPCClient("Andrea Adam", gorabbitmq.Connection{"127.0.0.1", "5672", "account", "account", "account"}, gorabbitmq.QueueSetting{"account", true, false, false, false, nil}, gorabbitmq.ConsumeSetting{"", true, false, false, false, nil}, gorabbitmq.OtherSetting{"account", "60000", false, false, 18})
if err != nil {
gohelpers.HandleResponse(response, 400, "looks like something went wrong", err)
return
}
import "services/routes"
gorabbitmq.RPCServer(gorabbitmq.Connection{"127.0.0.1", "5672", "account", "account", "account"}, gorabbitmq.QueueSetting{"account", true, false, false, false, nil}, gorabbitmq.QosSetting{1, 0, false}, gorabbitmq.ConsumeSetting{"", false, false, false, false, nil}, gorabbitmq.OtherSetting{"account", "60000", false, false, 18}, routes.HandleRequest)
I use SemVer for versioning. For the versions available, see the tags on this repository.
Andrea Adam - MrAndreID
MIT licensed. See the LICENSE file for details.
Documentation for Go Language can be found on the Go Language website.
Documentation can be found on https://go.dev/.