pubsub

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

Client matches the interface exposed by pubsub.Client see https://godoc.org/cloud.google.com/go/pubsub#Client

func NewClient

func NewClient(ctx context.Context, projectID string, opts ...option.ClientOption) (Client, error)

NewClient creates a new wrapped Pub/Sub client.

type SubscriptionConfig

type SubscriptionConfig struct {
	Topic               Topic
	AckDeadline         time.Duration
	RetainAckedMessages bool
	RetentionDuration   time.Duration
	Labels              map[string]string
}

SubscriptionConfig re-implements pubsub.SubscriptionConfig to allow us to use a wrapped Topic internally.

type Topic

type Topic interface {
	// Exists see https://godoc.org/cloud.google.com/go/pubsub#Topic.Exists
	Exists(ctx context.Context) (bool, error)
}

Client matches the interface exposed by pubsub.Topic see https://godoc.org/cloud.google.com/go/pubsub#Topic

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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