helloworld

package
v0.0.0-...-de6dcb2 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2020 License: MIT Imports: 2 Imported by: 0

README

This simple tutorial demonstrates writing, deploying, and triggering a Background Cloud Function with a Cloud Pub/Sub trigger.

https://cloud.google.com/functions/docs/tutorials/pubsub?authuser=0#functions_helloworld_pubsub_tutorial-go

Documentation

Overview

Package helloworld provides a set of Cloud Functions samples.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HelloPubSub

func HelloPubSub(ctx context.Context, m PubSubMessage) error

HelloPubSub consumes a Pub/Sub message.

Types

type PubSubMessage

type PubSubMessage struct {
	Data []byte `json:"data"`
}

Jump to

Keyboard shortcuts

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