queue

package
v0.0.0-...-5cd5cfe Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AzqueueQueueService

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

func New

func New() (*AzqueueQueueService, error)

New - Constructs a new Azure Storage Queues client with defaults

func (*AzqueueQueueService) Complete

Complete - Completes a previously popped queue item

func (*AzqueueQueueService) Dequeue

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

func (*AzqueueQueueService) Enqueue

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