gcppubsub

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package gcppubsub provides an implementation of pubsub that uses GCP PubSub.

It exposes the following types for As: Topic: *raw.PublisherClient Subscription: *raw.SubscriberClient

Index

Constants

View Source
const EndPoint = "pubsub.googleapis.com:443"

Variables

This section is empty.

Functions

func OpenSubscription

func OpenSubscription(ctx context.Context, client *raw.SubscriberClient, proj gcp.ProjectID, subscriptionName string, opts *SubscriptionOptions) *pubsub.Subscription

OpenSubscription opens the subscription on GCP PubSub for the given projectID and subscriptionName.

func OpenTopic

func OpenTopic(ctx context.Context, client *raw.PublisherClient, proj gcp.ProjectID, topicName string, opts *TopicOptions) *pubsub.Topic

OpenTopic opens the topic on GCP PubSub for the given projectID and topicName.

Types

type SubscriptionOptions

type SubscriptionOptions struct{}

SubscriptionOptions will contain configuration for subscriptions.

type TopicOptions

type TopicOptions struct{}

TopicOptions will contain configuration for topics.

Jump to

Keyboard shortcuts

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