The functions are example and basic "smoke tests" for the golang-http templates
faas-cli template pull https://github.com/LucasRoesler/golang-http-template#feat-revert-to-bash-scripts
faas-cli build
-
publisher
is an examplego-http
function that publishes messages to a NATS subject. This function demonstrates using a. external public packages:github.com/nats-io/nats.go
andgithub.com/openfaas/templates-sdk/go-http
b. it contains a named subpackagepkg/version
-
quoter
is an examplego-http-middleware
function that echos the input in quotes. This function demonstrates using a. local replace statements in the handlergo.mod
file b. a function that logs -
jules
is an examplego-http-middleware
function that echos the user input like Jules from Pulp Fiction: "Say {input} one more time!". This function demonstrates a. using vendoring b. a function that logs