Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Change NextMessageTime to RFC3339 string. Add doc comment.

  • Loading branch information...
commit 05d23b84bc90ad766e234ad2f0078f1bb1b2850a 1 parent 930fa49
@coopernurse coopernurse authored
Showing with 9 additions and 5 deletions.
  1. +9 −5 ironmq.go
View
14 ironmq.go
@@ -90,11 +90,15 @@ func (c *Client) Queue(name string) *Queue {
// QueueInfo provides general information about a queue.
type QueueInfo struct {
- Size int // number of items available on the queue
- NextMessageTime int64 `json:"next_message_time,omitempty"`
- MaxConcurrency uint64 `json:"max_concurrency,omitempty"`
- MaxReqPerMinute uint64 `json:"max_req_per_minute,omitempty"`
- WebhookUrl string `json:"webhook_url,omitempty"`
+ // number of items available on the queue
+ Size int
+ // Next time a message will be visible on this queue.
+ // Format: RFC3339 timestamp. If no messages remain in queue,
+ // this value is omitted from the response
+ NextMessageTime string `json:"next_message_time,omitempty"`
+ MaxConcurrency uint64 `json:"max_concurrency,omitempty"`
+ MaxReqPerMinute uint64 `json:"max_req_per_minute,omitempty"`
+ WebhookUrl string `json:"webhook_url,omitempty"`
}
// Info retrieves a QueueInfo structure for the queue.
Please sign in to comment.
Something went wrong with that request. Please try again.