pubsub_queue_service

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: Apache-2.0 Imports: 13 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 GCP pubsub client with defaults

func NewWithClient

func NewWithClient(client ifaces_pubsub.PubsubClient) queue.QueueService

func NewWithClients

func NewWithClients(client ifaces_pubsub.PubsubClient, subscriberClientGenerator func(ctx context.Context, opts ...option.ClientOption) (ifaces_pubsub.SubscriberClient, error)) queue.QueueService

*pubsubbase.SubscriberClient

Types

type PubsubQueueService

type PubsubQueueService struct {
	queue.UnimplementedQueuePlugin
	// contains filtered or unexported fields
}

func (*PubsubQueueService) Complete

func (s *PubsubQueueService) Complete(q string, leaseId string) error

Completes a previously popped queue item

func (*PubsubQueueService) Receive

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

Receives a collection of tasks off a given queue.

func (*PubsubQueueService) Send

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

func (*PubsubQueueService) SendBatch

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

Jump to

Keyboard shortcuts

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