messages.go 864 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
  2. package messages
  3. type PingRequest struct {
  4. }
  5. type PingResponse struct {
  6. }
  7. type InvokeRequest_Timestamp struct {
  8. Seconds int64
  9. Nanos int64
  10. }
  11. type InvokeRequest struct {
  12. Payload []byte
  13. RequestId string
  14. XAmznTraceId string
  15. Deadline InvokeRequest_Timestamp
  16. InvokedFunctionArn string
  17. CognitoIdentityId string
  18. CognitoIdentityPoolId string
  19. ClientContext []byte
  20. }
  21. type InvokeResponse struct {
  22. Payload []byte
  23. Error *InvokeResponse_Error
  24. }
  25. type InvokeResponse_Error struct {
  26. Message string
  27. Type string
  28. StackTrace []*InvokeResponse_Error_StackFrame
  29. ShouldExit bool
  30. }
  31. type InvokeResponse_Error_StackFrame struct {
  32. Path string `json:"path"`
  33. Line int32 `json:"line"`
  34. Label string `json:"label"`
  35. }