google

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package google implements a Pub/Sub queue using Google Cloud Pub/Sub.

See: https://cloud.google.com/pubsub

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultProjectID = os.Getenv("PUBSUB_PROJECT_ID")
)

Functions

func New

func New(ctx context.Context, options ...Option) (pubsub.Queue, error)

New creates a new pub/sub queue backed by Google Cloud Pub/Sub.

Types

type Option

type Option = func(cfg *config)

An Option customizes the config.

func WithProjectID

func WithProjectID(projectID string) Option

WithProjectID customizes the project id.

Jump to

Keyboard shortcuts

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