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

Function newRuntimeAPIClient

lambda/runtime_api_client.go:44–56  ·  view source on GitHub ↗
(address string)

Source from the content-addressed store, hash-verified

42}
43
44func newRuntimeAPIClient(address string) *runtimeAPIClient {
45 client := &http.Client{
46 Timeout: 0, // connections to the runtime API are never expected to time out
47 }
48 endpoint := "http://" + address + "/" + apiVersion + "/runtime/invocation/"
49 userAgent := "aws-lambda-go/" + runtime.Version()
50 pool := &sync.Pool{
51 New: func() interface{} {
52 return bytes.NewBuffer(nil)
53 },
54 }
55 return &runtimeAPIClient{endpoint, userAgent, client, pool}
56}
57
58type invoke struct {
59 id string

Callers 6

startRuntimeAPILoopFunction · 0.85
TestClientNextFunction · 0.85
TestClientDoneAndErrorFunction · 0.85
TestStatusCodesFunction · 0.85

Calls

no outgoing calls

Tested by 4

TestClientNextFunction · 0.68
TestClientDoneAndErrorFunction · 0.68
TestStatusCodesFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…