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

Function startFunctionRPC

lambda/rpc_function.go:35–46  ·  view source on GitHub ↗
(port string, handler Handler)

Source from the content-addressed store, hash-verified

33}
34
35func startFunctionRPC(port string, handler Handler) error {
36 lis, err := net.Listen("tcp", "localhost:"+port)
37 if err != nil {
38 log.Fatal(err)
39 }
40 err = rpc.Register(NewFunction(handler))
41 if err != nil {
42 log.Fatal("failed to register handler function")
43 }
44 rpc.Accept(lis)
45 return errors.New("accept should not have returned")
46}
47
48// Function struct which wrap the Handler
49//

Callers

nothing calls this directly

Calls 1

NewFunctionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…