go

command
v0.0.0-...-b73ddd5 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

README

Aynchronous Function Example

This is an example of an asynchronous function.

First, run the following commands:
# Initialize your function creating a func.yaml file
fn init --type async --name hello-go-async

# Test your function. This will run inside a container exactly how it will on the server
fn run

# Now try with an input
cat sample.payload.json | fn run

# Deploy your functions to the Fn server (default localhost:8080)
# This will create a route to your function as well
fn deploy --app myapp
Now call your function:
cat payload.json | fn call myapp hello-go-async

That's it!

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