(invoke *invoke, out *lambdacontext.CognitoIdentity)
| 138 | } |
| 139 | |
| 140 | func parseCognitoIdentity(invoke *invoke, out *lambdacontext.CognitoIdentity) error { |
| 141 | cognitoIdentityJSON := invoke.headers.Get(headerCognitoIdentity) |
| 142 | if cognitoIdentityJSON != "" { |
| 143 | if err := json.Unmarshal([]byte(cognitoIdentityJSON), out); err != nil { |
| 144 | return fmt.Errorf("failed to unmarshal cognito identity json: %v", err) |
| 145 | } |
| 146 | } |
| 147 | return nil |
| 148 | } |
| 149 | |
| 150 | func parseClientContext(invoke *invoke, out *lambdacontext.ClientContext) error { |
| 151 | clientContextJSON := invoke.headers.Get(headerClientContext) |
no outgoing calls
no test coverage detected
searching dependent graphs…