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

Function NewFunction

lambda/rpc_function.go:58–60  ·  view source on GitHub ↗

NewFunction which creates a Function with a given Handler Deprecated: The Function type is public for the go1.x runtime internal use of the net/rpc package

(handler Handler)

Source from the content-addressed store, hash-verified

56//
57// Deprecated: The Function type is public for the go1.x runtime internal use of the net/rpc package
58func NewFunction(handler Handler) *Function {
59 return &Function{newHandler(handler)}
60}
61
62// Ping method which given a PingRequest and a PingResponse parses the PingResponse
63func (fn *Function) Ping(req *messages.PingRequest, response *messages.PingResponse) error {

Callers 9

TestInvokeFunction · 0.85
TestInvokeWithContextFunction · 0.85
TestCustomErrorFunction · 0.85
TestCustomErrorRefFunction · 0.85
TestContextPlumbingFunction · 0.85
TestXAmznTraceIDFunction · 0.85
startFunctionRPCFunction · 0.85

Calls 1

newHandlerFunction · 0.85

Tested by 8

TestInvokeFunction · 0.68
TestInvokeWithContextFunction · 0.68
TestCustomErrorFunction · 0.68
TestCustomErrorRefFunction · 0.68
TestContextPlumbingFunction · 0.68
TestXAmznTraceIDFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…