{"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 handler\n\n## Constants\n\n```go\nconst (\n\tLambdaAgentFunctionErrorType string = \"Lambda-Extension-Function-Error-Type\"\n\n\tLambdaAgentName string = \"Lambda-Extension-Name\"\n\n\tStateTransitionFailedForExtensionMessageFormat string = \"State transition from %s to %s failed for extension %s. Error: %s\"\n\tStateTransitionFailedForRuntimeMessageFormat   string = \"State transition from %s to %s failed for runtime. Error: %s\"\n)\n```\n\n## Functions\n\n```go\nfunc NewAgentExitErrorHandler(registrationService core.RegistrationService) http.Handler\n```\n\n```go\nfunc NewAgentInitErrorHandler(registrationService core.RegistrationService) http.Handler\n```\n\n```go\nfunc NewAgentNextHandler(registrationService core.RegistrationService, renderingService *rendering.EventRenderingService) http.Handler\n```\n\n```go\nfunc NewAgentRegisterHandler(registrationService core.RegistrationService) http.Handler\n```\n\n```go\nfunc NewInitErrorHandler(registrationService core.RegistrationService) http.Handler\n```\n\n```go\nfunc NewInvocationErrorHandler(runtimeErrHandler RuntimeErrorHandler) http.Handler\n```\n\n```go\nfunc NewInvocationNextHandler(registrationService core.RegistrationService, nextHandler RuntimeNextHandler) http.Handler\n```\n\n```go\nfunc NewInvocationResponseHandler(runtimeRespHandler RuntimeResponseHandler) http.Handler\n```\n\n```go\nfunc NewPingHandler() http.Handler\n```\n\n```go\nfunc NewRuntimeLogsAPIStubHandler() http.Handler\n```\n\n```go\nfunc NewRuntimeTelemetryAPIStubHandler() http.Handler\n```\n\n```go\nfunc NewRuntimeTelemetrySubscriptionHandler(registrationService core.RegistrationService, telemetrySubscription telemetry.SubscriptionAPI) http.Handler\n```\n\n## Types\n\n```go\ntype ErrAgentIdentifierUnknown struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewErrAgentIdentifierUnknown(agentID uuid.UUID) *ErrAgentIdentifierUnknown\n```\n\n```go\nfunc (e *ErrAgentIdentifierUnknown) Error() string\n```\n\n```go\ntype RegisterRequest struct {\n\tEvents []core.Event `json:\"events\"`\n}\n```\n\n```go\ntype RuntimeErrorHandler interface {\n\tRuntimeError(ctx context.Context, runtimeErrReq invoke.RuntimeErrorRequest) model.AppError\n}\n```\n\n```go\ntype RuntimeNextHandler interface {\n\tRuntimeNext(ctx context.Context, runtimeReq http.ResponseWriter) (model.RuntimeNextWaiter, model.AppError)\n}\n```\n\n```go\ntype RuntimeResponseHandler interface {\n\tRuntimeResponse(ctx context.Context, runtimeRespReq invoke.RuntimeResponseRequest) model.AppError\n}\n```\n\n","path":"github.com/aws/aws-lambda-runtime-interface-emulator/internal/lambda-managed-instances/rapi/handler","name":"handler","synopsis":"","isRedistributable":true}
