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
Click to show internal directories.
Click to hide internal directories.