NewHandler creates a base lambda handler from the given handler function. The returned Handler performs JSON serialization and deserialization, and delegates to the input handler function. The handler function parameter must satisfy the rules documented by Start. If handlerFunc is not a valid handle
(handlerFunc interface{})
| 148 | // satisfy the rules documented by Start. If handlerFunc is not a valid |
| 149 | // handler, the returned Handler simply reports the validation error. |
| 150 | func NewHandler(handlerFunc interface{}) Handler { |
| 151 | return NewHandlerWithOptions(handlerFunc) |
| 152 | } |
| 153 | |
| 154 | // NewHandlerWithOptions creates a base lambda handler from the given handler function. The |
| 155 | // returned Handler performs JSON serialization and deserialization, and |
searching dependent graphs…