taskhandler

command module
v0.0.0-...-ba10ea2 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

README

App Engine Task Handler

This project is a getting starter guide for working with App Engine task handlers in Go.

Download template locally with gonew

  • Install gonew if you have not already.
go install golang.org/x/tools/cmd/gonew@latest
  • Download this template locally:
gonew github.com/GoogleCloudPlatform/go-templates/appengine/taskhandler your.domain/taskhandler

Deploy

# The name of the Cloud Task queue the handler will receive message from
EXPORT AE_QUEUE=ae-queue

# Deploy the app to App Engine
gcloud app deploy

# Create the Cloud Task queue
gcloud tasks queues create $AE_QUEUE

# Connect the Cloud Task queue to the App Engine handler endpoint
gcloud tasks create-app-engine-task hello --queue=$AE_QUEUE --relative-uri=/task_handler --body-content="a friendly hello"

Resources

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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