func NewBroker(rmq *rabbitmq.RabbitMQ, log logging.Logger) *Broker { return &Broker{ rmqConn: rmq.Conn(), log: log, } }
// 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 }
func NewController(rmqConn *rabbitmq.RabbitMQ, pubnub *models.PubNub, broker *models.Broker) *Controller { return &Controller{ Pubnub: pubnub, Broker: broker, logger: runner.MustGetLogger(), rmqConn: rmqConn.Conn(), } }