{"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 rie\n\n## Functions\n\n```go\nfunc GetenvWithDefault(key string, defaultValue string) string\n```\n\n```go\nfunc InitHandler(sandbox Sandbox, functionVersion string, timeout int64, bs interop.Bootstrap) (time.Time, time.Time)\n```\n\n```go\nfunc InvokeHandler(w http.ResponseWriter, r *http.Request, sandbox Sandbox, bs interop.Bootstrap)\n```\n\n```go\nfunc NewSimpleBootstrap(cmd []string, currentWorkingDir string) interop.Bootstrap\n```\n\n```go\nfunc Run()\n```\n\n## Types\n\n```go\ntype ErrorType int\n```\n\n```go\nconst (\n\tClientInvalidRequest ErrorType = iota\n)\n```\n\n```go\nfunc (t ErrorType) String() string\n```\n\n```go\ntype InteropServer interface {\n\tInit(i *interop.Init, invokeTimeoutMs int64) error\n\tAwaitInitialized() error\n\tFastInvoke(w http.ResponseWriter, i *interop.Invoke, direct bool) error\n\tReserve(id string, traceID, lambdaSegmentID string) (*rapidcore.ReserveResponse, error)\n\tReset(reason string, timeoutMs int64) (*statejson.ResetDescription, error)\n\tAwaitRelease() (*statejson.InternalStateDescription, error)\n\tShutdown(shutdown *interop.Shutdown) *statejson.InternalStateDescription\n\tInternalState() (*statejson.InternalStateDescription, error)\n\tCurrentToken() *interop.Token\n\tRestore(restore *interop.Restore) error\n}\n```\n\n```go\ntype ResponseWriterProxy struct {\n\tBody       []byte\n\tStatusCode int\n}\n```\n\n```go\nfunc (w *ResponseWriterProxy) Header() http.Header\n```\n\n```go\nfunc (w *ResponseWriterProxy) IsError() bool\n```\n\n```go\nfunc (w *ResponseWriterProxy) Write(b []byte) (int, error)\n```\n\n```go\nfunc (w *ResponseWriterProxy) WriteHeader(statusCode int)\n```\n\n```go\ntype Sandbox interface {\n\tInit(i *interop.Init, invokeTimeoutMs int64)\n\tInvoke(responseWriter http.ResponseWriter, invoke *interop.Invoke) error\n}\n```\n\n","path":"github.com/aws/aws-lambda-runtime-interface-emulator/internal/lambda/rie","name":"rie","synopsis":"","isRedistributable":true}
