{"modulePath":"github.com/nitrictech/nitric","version":"v0.21.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package azqueue_service\n\n## Functions\n\n```go\nfunc New() (queue.QueueService, error)\n```\nNew - Constructs a new Azure Storage Queues client with defaults\n\n```go\nfunc NewWithClient(client azqueueserviceiface.AzqueueServiceUrlIface) queue.QueueService\n```\n\n## Types\n\n```go\ntype AzqueueQueueService struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (s *AzqueueQueueService) Complete(ctx context.Context, queue string, leaseId string) error\n```\nComplete - Completes a previously popped queue item\n\n```go\nfunc (s *AzqueueQueueService) Receive(ctx context.Context, options queue.ReceiveOptions) ([]queue.NitricTask, error)\n```\nReceive - Receives a collection of tasks off a given queue.\n\n```go\nfunc (s *AzqueueQueueService) Send(ctx context.Context, queue string, task queue.NitricTask) error\n```\n\n```go\nfunc (s *AzqueueQueueService) SendBatch(ctx context.Context, queueName string, tasks []queue.NitricTask) (*queue.SendBatchResponse, error)\n```\n\n```go\ntype AzureQueueItemLease struct {\n\t// The ID of the queue item\n\t// note: this is an id generated by Azure, it's not the user provided unique id.\n\tID string\n\t// lease id, a new popReceipt is generated each time an item is dequeued.\n\tPopReceipt string\n}\n```\nAzureQueueItemLease - Represents a lease of an Azure Storages Queues item Azure requires a combination of their unique reference for a queue item (id) and a pop receipt (lease id) to perform operations on the item, such as delete it from the queue.\n\n```go\nfunc (l *AzureQueueItemLease) String() (string, error)\n```\nString - convert the item lease struct to a string, to be returned as a NitricTask LeaseID\n\n","path":"github.com/nitrictech/nitric/pkg/plugins/queue/azqueue","name":"azqueue_service","synopsis":"","isRedistributable":true}
