common

package
v7.0.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package common implements common functionality for both the API and worker servers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustOpenSubscription

func MustOpenSubscription(url string) *pubsub.Subscription

MustOpenSubscription opens a subscription, which must have been created ahead of time. It dies on any errors.

func MustOpenTopic

func MustOpenTopic(url string) *pubsub.Topic

MustOpenTopic opens a topic, which must have been created ahead of time.

Types

type Shutdownable

type Shutdownable interface {
	Shutdown(context.Context) error
}

Jump to

Keyboard shortcuts

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