func NewEnsurePublisher(p *Pool) *EnsurePublisher {
	return &EnsurePublisher{pool: p}
}
NewEnsurePublisher returns a new instance of EnsurePublisher.
package rabbitroutine
import (
	"context"
	"fmt"
	"math"
	"time"
	"github.com/pkg/errors"
	"github.com/streadway/amqp"
)
var (
	ErrNotFound = errors.New("rabbitmq entity not found")
	ErrNoRoute = errors.New("queue not bound")
)
type Publisher interface {
	Publish(ctx context.Context, exchange, key string, msg amqp.Publishing) error
}
type EnsurePublisher struct {
	pool *Pool
}