azqueue_service

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2022 License: Apache-2.0 Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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