Add message queue nats-streaming example (#1472)

This commit is contained in:
Ta-Ching Chen
2019-12-20 02:19:11 +08:00
committed by GitHub
parent 38f96c7e46
commit 0274ceb312
11 changed files with 299 additions and 0 deletions
@@ -0,0 +1,13 @@
package main
import (
"log"
"net/http"
)
// Handler is the entry point for this fission function
func Handler(w http.ResponseWriter, r *http.Request) {
log.Print("Hello, world!")
msg := "Hello, world!\n"
w.Write([]byte(msg))
}