(address string)
| 42 | } |
| 43 | |
| 44 | func 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 | |
| 58 | type invoke struct { |
| 59 | id string |
no outgoing calls
searching dependent graphs…