helloworld

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

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

Go to latest
Published: Feb 24, 2024 License: MIT Imports: 6 Imported by: 0

README

Google Cloud Functions Example

Test in mac local

start functions framework server.

make start

send request.

curl http://localhost:8080
# > Hello, World!

Deploy to Google Cloud

Before you begin

See: https://cloud.google.com/functions/docs/2nd-gen/getting-started#before-you-begin

Deploy

deploy to google cloud.

make deploy

describe functions detail.

make show

show functions log.

make log

open functions detail in google cloud console.

make open

Severity Level

In google cloud logging, warn is converted to warning and fatal is converted to critical.

See: https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry#logseverity

zl google cloud logging description
DEBUG DEBUG Debug or trace information.
INFO INFO Routine information, such as ongoing status or performance.
WARN WARNING Warning events might cause problems.
ERROR ERROR Error events are likely to cause problems.
FATAL CRITICAL Critical events cause more severe problems or outages.
image

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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