pubsub_queue_service

package
v0.21.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 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 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(ctx context.Context, q string, leaseId string) error

Completes a previously popped queue item

func (*PubsubQueueService) Receive

Receives a collection of tasks off a given queue.

func (*PubsubQueueService) Send

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

func (*PubsubQueueService) SendBatch

Jump to

Keyboard shortcuts

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