NewHandlerWithOptions 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 v
(handlerFunc interface{}, options ...Option)
| 157 | // satisfy the rules documented by Start. If handlerFunc is not a valid |
| 158 | // handler, the returned Handler simply reports the validation error. |
| 159 | func NewHandlerWithOptions(handlerFunc interface{}, options ...Option) Handler { |
| 160 | return newHandler(handlerFunc, options...) |
| 161 | } |
| 162 | |
| 163 | func newHandler(handlerFunc interface{}, options ...Option) *handlerOptions { |
| 164 | if h, ok := handlerFunc.(*handlerOptions); ok { |
no test coverage detected
searching dependent graphs…