コード例 #1
0
ファイル: mq.go プロジェクト: nildev/account
// 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}
}
コード例 #2
0
ファイル: mq.go プロジェクト: nildev/account
// 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)
}
コード例 #3
0
ファイル: mq.go プロジェクト: nildev/account
// 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)
}
コード例 #4
0
ファイル: mq.go プロジェクト: nildev/account
// 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)
}