Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OptKafkaSendOnly ¶
OptKafkaSendOnly creates producer only. Subscribe operation will panic
func OptRabbitMQSendOnly ¶
OptRabbitMQSendOnly creates only sending connection. Subscribe operation will panic
Types ¶
type Kafka ¶
type Kafka struct {
// contains filtered or unexported fields
}
Kafka Implements transport interface using Kafka broker.
type Noop ¶
type Noop struct {
// contains filtered or unexported fields
}
Noop implements dummy transport which does nothing (optionally prints to the output specified
func NewNoop ¶
NewNoop creates an instance of transport. out can be set to configure optional output.
type RabbitMQ ¶
type RabbitMQ struct {
// contains filtered or unexported fields
}
RabbitMQ implements transport over AMQP protocol and RabbitMQ messaging service
func NewRabbitMQ ¶
func NewRabbitMQ(url string, defaultExchangeName string, options ...func(mq *RabbitMQ) error) (mq *RabbitMQ, err error)
NewRabbitMQ creates new instance of RabbitMQ MessageQueue driver. Accepts variadic list of function options.
func (*RabbitMQ) Close ¶
func (mq *RabbitMQ) Close()
Close closes AMQP connections and stops all subscriptions
Click to show internal directories.
Click to hide internal directories.