Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsumerFunc ¶
type ConsumerFunc func(*Msg)
type GoRoutineMQ ¶
type GoRoutineMQ struct {
ConsumerMap map[uint32]ConsumerFunc
}
func SetupGoRoutineMQ ¶
func SetupGoRoutineMQ(consumerMap map[uint32]ConsumerFunc) (*GoRoutineMQ, error)
func (*GoRoutineMQ) Close ¶
func (mq *GoRoutineMQ) Close()
func (*GoRoutineMQ) Consume ¶
func (mq *GoRoutineMQ) Consume(consumerMap map[uint32]ConsumerFunc) error
func (*GoRoutineMQ) Publish ¶
func (mq *GoRoutineMQ) Publish(msg *Msg) error
type MQ ¶
type MQ interface { Close() Publish(msg *Msg) error Consume(consumerMap map[uint32]ConsumerFunc) error }
type RabbitMQ ¶
type RabbitMQ struct { Conn *amqp.Connection Settings *Settings }
func SetupRabbitMQ ¶
Click to show internal directories.
Click to hide internal directories.