Documentation
¶
Index ¶
- type Message
- type Queue
- func (q *Queue) Consumer(opt *queue.ConsumerOption) (*queue.Consumer, error)
- func (q *Queue) Later(delay time.Duration, messages ...interface{}) (err error)
- func (q *Queue) Name() string
- func (q *Queue) Publish(messages ...interface{}) (err error)
- func (q *Queue) Purge() error
- func (q *Queue) Size() int
- type QueueOption
- type Worker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Queue ¶
type Queue struct {
// contains filtered or unexported fields
}
type QueueOption ¶
type QueueOption struct { // Connection the connection is used to receive and send messages Connection *amqp.Connection // URL is a string in the AMQP URI format, // if you do not provide the Connection parameter, // we will try to create a new connection from the URL URL string // Codec is using for marshal and unmarshal messages // default is gob codec with s2 compression Codec encoding.Codec }
Click to show internal directories.
Click to hide internal directories.