MCPcopy Index your code
hub / github.com/aws/aws-lambda-go / NewHandlerWithOptions

Function NewHandlerWithOptions

lambda/handler.go:159–161  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

157// satisfy the rules documented by Start. If handlerFunc is not a valid
158// handler, the returned Handler simply reports the validation error.
159func NewHandlerWithOptions(handlerFunc interface{}, options ...Option) Handler {
160 return newHandler(handlerFunc, options...)
161}
162
163func newHandler(handlerFunc interface{}, options ...Option) *handlerOptions {
164 if h, ok := handlerFunc.(*handlerOptions); ok {

Callers 1

NewHandlerFunction · 0.85

Calls 1

newHandlerFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…