()
| 12 | ) |
| 13 | |
| 14 | func init() { |
| 15 | functions.HTTP("Hello", hello, |
| 16 | functions.WithFunctionPath("/hello/{name}"), |
| 17 | functions.WithFunctionMethods("GET", "POST"), |
| 18 | ) |
| 19 | |
| 20 | functions.CloudEvent("Foo", foo, |
| 21 | functions.WithFunctionPath("/foo/{name}"), |
| 22 | ) |
| 23 | |
| 24 | functions.OpenFunction("Bar", bar, |
| 25 | functions.WithFunctionPath("/bar/{name}"), |
| 26 | functions.WithFunctionMethods("GET", "POST"), |
| 27 | ) |
| 28 | } |
| 29 | |
| 30 | func hello(w http.ResponseWriter, r *http.Request) { |
| 31 | vars := ofctx.VarsFromCtx(r.Context()) |
nothing calls this directly
no outgoing calls
no test coverage detected