Documentation
¶
Index ¶
- Constants
- type RabbitMQ
- func (c *RabbitMQ) Close() error
- func (c *RabbitMQ) Fetch(target string) ([][]byte, error)
- func (c *RabbitMQ) Listen(target string) error
- func (c *RabbitMQ) Open() error
- func (c *RabbitMQ) Publish(target string, payload []byte) error
- func (c *RabbitMQ) PublishFromFile(target string, fileName string) error
- func (c *RabbitMQ) Ready() error
- func (c *RabbitMQ) Reset() error
Constants ¶
View Source
const (
DefaultWaitDuration = time.Millisecond * 50
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RabbitMQ ¶
type RabbitMQ struct {
// contains filtered or unexported fields
}
func (*RabbitMQ) Listen ¶
Listen creates a consumer on the passed target, creates the queue, and puts the messages into consumedMessage map for later access
func (*RabbitMQ) PublishFromFile ¶ added in v1.4.1
PublishFromFile attempts to publish a message read from a file to the passed target
Click to show internal directories.
Click to hide internal directories.