gcp

package
v0.0.0-...-e6824c6 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2017 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts ...Option) (pubsub.Publisher, error)

New returns a pubsub messaging system backed by Google Cloud pubusb.

Types

type Option

type Option func(*Options)

Option configures the Google Cloud pubsub client.

func WithProject

func WithProject(project string) Option

WithProject configures the Pubsub client with the named project.

func WithServiceAccountToken

func WithServiceAccountToken(path string) Option

WithServiceAccountToken configures the Pubsub client with the service account token file for authentication and authorization.

func WithSubscription

func WithSubscription(subscripttion string) Option

WithSubscription configures the Pubsub client with the named subscription.

func WithTopic

func WithTopic(topic string) Option

WithTopic configures the Pubsub client with the named topic.

type Options

type Options struct {
	// contains filtered or unexported fields
}

Options defines Google Cloud Pubsub options.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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