googlepubsub

package module
v2.0.0-...-03508dc Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package googlepubsub provides a Google cloud pubsub broker

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientOption

func ClientOption(c ...option.ClientOption) broker.Option

ClientOption is a broker Option which allows google pubsub client options to be set for the client

func CreateSubscription

func CreateSubscription(b bool) broker.Option

CreateSubscription prevents the creation of the subscription if it not exists

func DeleteSubscription

func DeleteSubscription(b bool) broker.Option

DeleteSubscription prevents the deletion of the subscription if it not exists

func MaxExtension

func MaxExtension(d time.Duration) broker.SubscribeOption

MaxExtension is the maximum period for which the Subscription should automatically extend the ack deadline for each message.

func MaxOutstandingMessages

func MaxOutstandingMessages(max int) broker.SubscribeOption

MaxOutstandingMessages sets the maximum number of unprocessed messages (unacknowledged but not yet expired) to receive.

func NewBroker

func NewBroker(opts ...broker.Option) broker.Broker

NewBroker creates a new google pubsub broker

func ProjectID

func ProjectID(id string) broker.Option

ProjectID provides an option which sets the google project id

Types

This section is empty.

Jump to

Keyboard shortcuts

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