tips

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

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

Go to latest
Published: Oct 22, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

[START functions_cloudevent_tips_retry]

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FailedWriteOperation

func FailedWriteOperation(client interface{}, data string) error

FailedWriteOperation simulates failure to write data via the provided client

func MisconfiguredDataClient

func MisconfiguredDataClient() (interface{}, error)

MisconfiguredDataClient simulates failure to retrieve a data storage client.

func RetryPubSub

func RetryPubSub(ctx context.Context, e event.Event) error

RetryPubSub demonstrates how to toggle using retries.

Types

type MessagePublishedData

type MessagePublishedData struct {
	Message PubSubMessage
}

MessagePublishedData contains the full Pub/Sub message See the documentation for more details: https://cloud.google.com/eventarc/docs/cloudevents#pubsub

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