log

package module
v0.0.0-...-4badc5a Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package log contains examples for handling Cloud Functions logs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcessLogEntry

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

ProcessLogEntry processes a Pub/Sub message from Cloud Logging.

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