Start takes a handler and talks to an internal Lambda endpoint to pass requests to the handler. If the handler does not match one of the supported types an appropriate error message will be returned to the caller. Start blocks, and does not return after being called. Rules: - handler must be a fun
(handler interface{})
| 45 | // |
| 46 | // Note: If "TOut" is both JSON serializable and implements io.Reader, JSON serialization takes precedence. |
| 47 | func Start(handler interface{}) { |
| 48 | StartWithOptions(handler) |
| 49 | } |
| 50 | |
| 51 | // StartWithContext is the same as Start except sets the base context for the function. |
| 52 | // |
searching dependent graphs…