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

Function parseDeadline

lambda/invoke_loop.go:132–138  ·  view source on GitHub ↗
(invoke *invoke)

Source from the content-addressed store, hash-verified

130}
131
132func parseDeadline(invoke *invoke) (time.Time, error) {
133 deadlineEpochMS, err := strconv.ParseInt(invoke.headers.Get(headerDeadlineMS), 10, 64)
134 if err != nil {
135 return time.Time{}, fmt.Errorf("failed to parse deadline: %v", err)
136 }
137 return unixMS(deadlineEpochMS), nil
138}
139
140func parseCognitoIdentity(invoke *invoke, out *lambdacontext.CognitoIdentity) error {
141 cognitoIdentityJSON := invoke.headers.Get(headerCognitoIdentity)

Callers 1

handleInvokeFunction · 0.85

Calls 1

unixMSFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…