{"modulePath":"github.com/nitrictech/nitric","version":"v0.21.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package pubsub_queue_service\n\n## Functions\n\n```go\nfunc New() (queue.QueueService, error)\n```\nNew - Constructs a new GCP pubsub client with defaults\n\n```go\nfunc NewWithClient(client ifaces_pubsub.PubsubClient) queue.QueueService\n```\n\n```go\nfunc NewWithClients(client ifaces_pubsub.PubsubClient, subscriberClientGenerator func(ctx context.Context, opts ...option.ClientOption) (ifaces_pubsub.SubscriberClient, error)) queue.QueueService\n```\n\\*pubsubbase.SubscriberClient\n\n## Types\n\n```go\ntype PubsubQueueService struct {\n\tqueue.UnimplementedQueuePlugin\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (s *PubsubQueueService) Complete(ctx context.Context, q string, leaseId string) error\n```\nCompletes a previously popped queue item\n\n```go\nfunc (s *PubsubQueueService) Receive(ctx context.Context, options queue.ReceiveOptions) ([]queue.NitricTask, error)\n```\nReceives a collection of tasks off a given queue.\n\n```go\nfunc (s *PubsubQueueService) Send(ctx context.Context, queue string, task queue.NitricTask) error\n```\n\n```go\nfunc (s *PubsubQueueService) SendBatch(ctx context.Context, q string, tasks []queue.NitricTask) (*queue.SendBatchResponse, error)\n```\n\n","path":"github.com/nitrictech/nitric/pkg/plugins/queue/pubsub","name":"pubsub_queue_service","synopsis":"","isRedistributable":true}
