MCPcopy
hub / github.com/aws/aws-lambda-go / NewHandler

Function NewHandler

lambda/handler.go:150–152  ·  view source on GitHub ↗

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{})

Source from the content-addressed store, hash-verified

148// satisfy the rules documented by Start. If handlerFunc is not a valid
149// handler, the returned Handler simply reports the validation error.
150func 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

Calls 1

NewHandlerWithOptionsFunction · 0.85

Used in the wild real call sites across dependent graphs

searching dependent graphs…