Documentation ¶
Index ¶
- func New() (sdk.QueueService, error)
- func NewWithClient(client ifaces_pubsub.PubsubClient) sdk.QueueService
- func NewWithClients(client ifaces_pubsub.PubsubClient, ...) sdk.QueueService
- type PubsubQueueService
- func (s *PubsubQueueService) Complete(queue string, leaseId string) error
- func (s *PubsubQueueService) Receive(options sdk.ReceiveOptions) ([]sdk.NitricTask, error)
- func (s *PubsubQueueService) Send(queue string, task sdk.NitricTask) error
- func (s *PubsubQueueService) SendBatch(queue string, tasks []sdk.NitricTask) (*sdk.SendBatchResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New() (sdk.QueueService, error)
New - Constructs a new GCP pubsub client with defaults
func NewWithClient ¶
func NewWithClient(client ifaces_pubsub.PubsubClient) sdk.QueueService
func NewWithClients ¶
func NewWithClients(client ifaces_pubsub.PubsubClient, subscriberClientGenerator func(ctx context.Context, opts ...option.ClientOption) (ifaces_pubsub.SubscriberClient, error)) sdk.QueueService
*pubsubbase.SubscriberClient
Types ¶
type PubsubQueueService ¶
type PubsubQueueService struct { sdk.UnimplementedQueuePlugin // contains filtered or unexported fields }
func (*PubsubQueueService) Complete ¶
func (s *PubsubQueueService) Complete(queue string, leaseId string) error
Completes a previously popped queue item
func (*PubsubQueueService) Receive ¶
func (s *PubsubQueueService) Receive(options sdk.ReceiveOptions) ([]sdk.NitricTask, error)
Receives a collection of tasks off a given queue.
func (*PubsubQueueService) Send ¶
func (s *PubsubQueueService) Send(queue string, task sdk.NitricTask) error
func (*PubsubQueueService) SendBatch ¶
func (s *PubsubQueueService) SendBatch(queue string, tasks []sdk.NitricTask) (*sdk.SendBatchResponse, error)
Click to show internal directories.
Click to hide internal directories.