Documentation ¶
Index ¶
Constants ¶
View Source
const ( // TypePublisher const is value of type for a publisher TypePublisher = 0 // TypeConsumer const is value of type for a consumer TypeConsumer = 1 )
Variables ¶
View Source
var DefaultTimeout time.Duration = 30 * time.Second
DefaultTimeout is the default timeout for connection
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for RabbitMQ
func NewClient ¶
func NewClient(ctx context.Context, logger log.ILogger, conf config.RabbitMQ, clientType uint) (*Client, error)
NewClient returns a new instance of the Client
func (*Client) ConnectLoop ¶
ConnectLoop is the func for connection in a loop with timeout
Click to show internal directories.
Click to hide internal directories.