Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( IronAWSUSEast = NewCloud("https", "mq-aws-us-east-1.iron.io") IronRackspaceDFW = NewCloud("https", "mq-rackspace-dfw.iron.io") IronRackspaceORD = NewCloud("https", "mq-rackspace-ord.iron.io") )
View Source
var EmptyQueue = errors.New("queue is empty")
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Debug bool // contains filtered or unexported fields }
A Client contains an Iron.io project ID and a token for authentication.
type Message ¶
type Message struct { Id string `json:"id,omitempty"` Body string `json:"body"` // Timeout is the amount of time in seconds allowed for processing the // message. Timeout int64 `json:"timeout,omitempty"` // Delay is the amount of time in seconds to wait before adding the // message to the queue. Delay int64 `json:"delay,omitempty"` // contains filtered or unexported fields }
type Queue ¶
Queue represents an IronMQ queue.
func (*Queue) Get ¶
Get takes one Message off of the queue. The Message will be returned to the queue if not deleted before the item's timeout.
Click to show internal directories.
Click to hide internal directories.