tips

package module
v0.0.0-...-f2e5277 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package tips contains tips for writing Cloud Functions in Go.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FiniteRetryPubSub

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

FiniteRetryPubSub demonstrates how to avoid inifinite retries.

Types

type PubSubMessage

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

PubSubMessage is the payload of a Pub/Sub event. See the documentation for more details: https://cloud.google.com/pubsub/docs/reference/rest/v1/PubsubMessage

Jump to

Keyboard shortcuts

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