Documentation ¶
Index ¶
- func ConnectMongo(uri string, maxRetries int, retryDelay time.Duration) (*mongo.Client, error)
- type Digits
- type OTPUtilities
- type RabbitMQ
- func (mq *RabbitMQ) BindQueue(queueName string, exchangeName string, routingKey string) error
- func (mq *RabbitMQ) Close() error
- func (mq *RabbitMQ) Consume(queueName string, consumerName string, autoAck bool) (<-chan amqp.Delivery, error)
- func (mq *RabbitMQ) DeclareExchange(name string, kind string, durable bool) error
- func (mq *RabbitMQ) DeclareQueue(name string, durable bool) (amqp.Queue, error)
- func (mq *RabbitMQ) Publish(exchange string, routingKey string, mandatory bool, immediate bool, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type OTPUtilities ¶
func NewOtpUtilities ¶
func NewOtpUtilities(key []byte) OTPUtilities
type RabbitMQ ¶
type RabbitMQ struct {
// contains filtered or unexported fields
}
func NewRabbitMQ ¶
func (*RabbitMQ) DeclareExchange ¶
func (*RabbitMQ) DeclareQueue ¶
Click to show internal directories.
Click to hide internal directories.