{"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\tLambdaAgentIdentifier     string = \"Lambda-Extension-Identifier\"\n\tErrAgentIdentifierMissing string = \"Extension.MissingExtensionIdentifier\"\n\tErrAgentIdentifierInvalid string = \"Extension.InvalidExtensionIdentifier\"\n)\n```\n\n```go\nconst (\n\tXRaySampled    = \"1\"\n\tXRayNonSampled = \"0\"\n)\n```\n\n```go\nconst MaxErrorCauseSizeBytes = 64 \u003c\u003c 10\n```\n\n## Functions\n\n```go\nfunc ValidatedErrorCauseJSON(errorCauseJSON []byte) ([]byte, error)\n```\n\n## Types\n\n```go\ntype AgentEvent struct {\n\tEventType  string `json:\"eventType\"`\n\tDeadlineMs int64  `json:\"deadlineMs\"`\n}\n```\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```\n\n```go\ntype AgentShutdownEvent struct {\n\t*AgentEvent\n\tShutdownReason ShutdownReason `json:\"shutdownReason\"`\n}\n```\n\n```go\ntype CognitoIdentity struct {\n\tCognitoIdentityID     string `json:\"cognitoIdentityId\"`\n\tCognitoIdentityPoolID string `json:\"cognitoIdentityPoolId\"`\n}\n```\n\n```go\ntype CtxKey int\n```\n\n```go\nconst (\n\tAgentIDCtxKey CtxKey = iota\n)\n```\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```\n\n```go\ntype ErrorResponse struct {\n\tErrorMessage string   `json:\"errorMessage\"`\n\tErrorType    string   `json:\"errorType\"`\n\tStackTrace   []string `json:\"stackTrace,omitempty\"`\n}\n```\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```\n\n```go\ntype ShutdownReason string\n```\n\n```go\nconst (\n\tSpindown ShutdownReason = \"spindown\"\n\tFailure  ShutdownReason = \"failure\"\n)\n```\n\n```go\ntype StatusResponse struct {\n\tStatus string `json:\"status\"`\n}\n```\n\n```go\ntype Tracing struct {\n\tType TracingType `json:\"type\"`\n\tXRayTracing\n}\n```\n\n```go\nfunc NewXRayTracing(value string) *Tracing\n```\n\n```go\ntype TracingType string\n```\n\n```go\nconst (\n\tXRayTracingType TracingType = \"X-Amzn-Trace-Id\"\n)\n```\n\n```go\ntype XRayTracing struct {\n\tValue string `json:\"value\"`\n}\n```\n\n","path":"github.com/aws/aws-lambda-runtime-interface-emulator/internal/lambda-managed-instances/rapi/model","name":"model","synopsis":"","isRedistributable":true}
