azqueue_service

package
v0.16.0-rc.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() (queue.QueueService, error)

New - Constructs a new Azure Storage Queues client with defaults

Types

type AzqueueQueueService

type AzqueueQueueService struct {
	// contains filtered or unexported fields
}

func (*AzqueueQueueService) Complete

func (s *AzqueueQueueService) Complete(queue string, leaseId string) error

Complete - Completes a previously popped queue item

func (*AzqueueQueueService) Receive

func (s *AzqueueQueueService) Receive(options queue.ReceiveOptions) ([]queue.NitricTask, error)

Receive - Receives a collection of tasks off a given queue.

func (*AzqueueQueueService) Send

func (s *AzqueueQueueService) Send(queue string, task queue.NitricTask) error

func (*AzqueueQueueService) SendBatch

func (s *AzqueueQueueService) SendBatch(queueName string, tasks []queue.NitricTask) (*queue.SendBatchResponse, error)

type AzureQueueItemLease

type AzureQueueItemLease struct {
	// The ID of the queue item
	// note: this is an id generated by Azure, it's not the user provided unique id.
	ID string
	// lease id, a new popReceipt is generated each time an item is dequeued.
	PopReceipt string
}

AzureQueueItemLease - 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.

func (*AzureQueueItemLease) String

func (l *AzureQueueItemLease) String() (string, error)

String - convert the item lease struct to a string, to be returned as a NitricTask LeaseID

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL