(w http.ResponseWriter, r *http.Request)
| 28 | } |
| 29 | |
| 30 | func hello(w http.ResponseWriter, r *http.Request) { |
| 31 | vars := ofctx.VarsFromCtx(r.Context()) |
| 32 | response := map[string]string{ |
| 33 | "hello": vars["name"], |
| 34 | } |
| 35 | responseBytes, _ := json.Marshal(response) |
| 36 | w.Header().Set("Content-type", "application/json") |
| 37 | w.Write(responseBytes) |
| 38 | } |
| 39 | |
| 40 | func foo(ctx context.Context, ce cloudevents.Event) error { |
| 41 | vars := ofctx.VarsFromCtx(ctx) |
nothing calls this directly
no outgoing calls
no test coverage detected