Exemple #1
0
func NewBroker(rmq *rabbitmq.RabbitMQ, log logging.Logger) *Broker {

	return &Broker{
		rmqConn: rmq.Conn(),
		log:     log,
	}
}
Exemple #2
0
// New Creates a new controller for realtime package
func New(rmq *rabbitmq.RabbitMQ, log logging.Logger) *Controller {
	ffc := &Controller{
		log:     log,
		rmqConn: rmq.Conn(),
	}

	return ffc
}
Exemple #3
0
func NewController(rmqConn *rabbitmq.RabbitMQ, pubnub *models.PubNub, broker *models.Broker) *Controller {

	return &Controller{
		Pubnub:  pubnub,
		Broker:  broker,
		logger:  runner.MustGetLogger(),
		rmqConn: rmqConn.Conn(),
	}
}