{"modulePath":"github.com/aws/aws-lambda-runtime-interface-emulator","version":"v0.0.0-20261030222936-bef5c4ba774d","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package model\n\n## Constants\n\n```go\nconst (\n\tXRaySampled    = \"1\"\n\tXRayNonSampled = \"0\"\n)\n```\n\n```go\nconst MaxErrorCauseSizeBytes = 64 \u003c\u003c 10\n```\nMaxErrorCauseSizeBytes limits the size of a cause, since the max X-Ray document size of 64kB\n\n## Functions\n\n```go\nfunc ValidatedErrorCauseJSON(errorCauseJSON []byte) ([]byte, error)\n```\nValidatedErrorCauseJSON returns an error if the ErrorCause JSON has an invalid format\n\n## Types\n\n```go\ntype AgentEvent struct {\n\tEventType  string `json:\"eventType\"`\n\tDeadlineMs int64  `json:\"deadlineMs\"`\n}\n```\nAgentEvent is one of INVOKE, SHUTDOWN agent events\n\n```go\ntype AgentInvokeEvent struct {\n\t*AgentEvent\n\tRequestID          string   `json:\"requestId\"`\n\tInvokedFunctionArn string   `json:\"invokedFunctionArn\"`\n\tTracing            *Tracing `json:\"tracing,omitempty\"`\n}\n```\nAgentInvokeEvent is the response to agent's get next request\n\n```go\ntype AgentShutdownEvent struct {\n\t*AgentEvent\n\tShutdownReason string `json:\"shutdownReason\"`\n}\n```\nAgentShutdownEvent is the response to agent's get next request\n\n```go\ntype CognitoIdentity struct {\n\tCognitoIdentityID     string `json:\"cognitoIdentityId\"`\n\tCognitoIdentityPoolID string `json:\"cognitoIdentityPoolId\"`\n}\n```\nCognitoIdentity is returned by the API server in a response headers, providing information about client's Cognito identity.\n\n```go\ntype ErrorCause struct {\n\tExceptions []exception `json:\"exceptions\"`\n\tWorkingDir string      `json:\"working_directory\"`\n\tPaths      []string    `json:\"paths\"`\n\tMessage    string      `json:\"message,omitempty\"`\n}\n```\nErrorCause represents the cause of an error reported by the runtime, and may contain stack traces and exceptions\n\n```go\ntype ErrorResponse struct {\n\tErrorMessage string   `json:\"errorMessage\"`\n\tErrorType    string   `json:\"errorType\"`\n\tStackTrace   []string `json:\"stackTrace,omitempty\"`\n}\n```\nErrorResponse is a standard invoke error response, providing information about the error.\n\n```go\ntype ExtensionRegisterResponse struct {\n\tAccountID       string `json:\"accountId,omitempty\"`\n\tFunctionName    string `json:\"functionName\"`\n\tFunctionVersion string `json:\"functionVersion\"`\n\tHandler         string `json:\"handler\"`\n}\n```\nExtensionRegisterResponse is a response returned by the API server on extension/register post request\n\n```go\ntype StatusResponse struct {\n\tStatus string `json:\"status\"`\n}\n```\nStatusResponse is a response returned by the API server, providing status information.\n\n```go\ntype Tracing struct {\n\tType TracingType `json:\"type\"`\n\tXRayTracing\n}\n```\nTracing object returned as part of agent Invoke event\n\n```go\nfunc NewXRayTracing(value string) *Tracing\n```\nNewXRayTracing returns a new XRayTracing object with specified value\n\n```go\ntype TracingType string\n```\n\n```go\nconst (\n\t// XRayTracingType represents an X-Ray Tracing object type\n\tXRayTracingType TracingType = \"X-Amzn-Trace-Id\"\n)\n```\n\n```go\ntype XRayTracing struct {\n\tValue string `json:\"value\"`\n}\n```\nXRayTracing is a type of Tracing object\n\n","path":"github.com/aws/aws-lambda-runtime-interface-emulator/internal/lambda/rapi/model","name":"model","synopsis":"","isRedistributable":true}
