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: 7 Imported by: 0

README

Hot Function Example

This is an example of a hot function. The hot function documentation contains an analysis of how this example works.

Note that you should probably be using the fdk but this serves as a good example of how to do a hot functions raw without the fdk.

How to run the example

Install the CLI tool, start a Fn server and run docker login to login to DockerHub. See the front page for instructions.

Set your Docker Hub username

export FN_REGISTRY=<DOCKERHUB_USERNAME>

Build and deploy the function to the Fn server (default localhost:8080)

fn deploy --app hot-app

Now call your function:

curl -X POST -d "World" http://localhost:8080/r/hot-app/hotfn-go

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