Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RabbitClient ¶
type RabbitClient interface { Publish(ctx context.Context, exchangeName string, routingKey string, message interface{}) error PublishBytes(ctx context.Context, exchangeName string, routingKey string, message []byte) error Consume(ctx context.Context, queueName string) (<-chan amqp.Delivery, error) Finish() }
func InitRabbitClient ¶
func InitRabbitClient(connectionString string) (RabbitClient, error)
Click to show internal directories.
Click to hide internal directories.