// New uses the configuration specified in an iron.json file or environment variables // to return a Queue object capable of acquiring information about or modifying the queue // specified by queueName. func New(queueName string) Queue { return Queue{Settings: config.Config("iron_mq"), Name: queueName} }
// Filter is like List, but will only return queues with the specified prefix. func Filter(prefix string) ([]Queue, error) { return ListQueues(config.Config("iron_mq"), prefix, "", 0) }
// Like ListPage, but with an added filter. func FilterPage(prefix, prev string, perPage int) ([]Queue, error) { return ListQueues(config.Config("iron_mq"), prefix, prev, perPage) }
// List will get a listQueues of all queues for the configured project, paginated 30 at a time. // For paging or filtering, see ListPage and Filter. func List() ([]Queue, error) { return ListQueues(config.Config("iron_mq"), "", "", 0) }