{"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 core\n\n## Constants\n\n```go\nconst (\n\tAgentStartedStateName        = \"Started\"\n\tAgentRegisteredStateName     = \"Registered\"\n\tAgentReadyStateName          = \"Ready\"\n\tAgentRunningStateName        = \"Running\"\n\tAgentInitErrorStateName      = \"InitError\"\n\tAgentExitErrorStateName      = \"ExitError\"\n\tAgentShutdownFailedStateName = \"ShutdownFailed\"\n\tAgentExitedStateName         = \"Exited\"\n\tAgentLaunchErrorName         = \"LaunchError\"\n)\n```\n\n```go\nconst (\n\tRuntimeStartedStateName   = \"Started\"\n\tRuntimeInitErrorStateName = \"InitError\"\n\tRuntimeReadyStateName     = \"Ready\"\n\tRuntimeRunningStateName   = \"Running\"\n)\n```\n\n```go\nconst MaxAgentsAllowed = 10\n```\n\n## Variables\n\n```go\nvar ErrAgentIDCollision = errors.New(\"ErrAgentIDCollision\")\n```\n\n```go\nvar ErrAgentNameCollision = errors.New(\"ErrAgentNameCollision\")\n```\n\n```go\nvar ErrConcurrentStateModification = errors.New(\"concurrent state modification\")\n```\n\n```go\nvar ErrGateCanceled = errors.New(\"ErrGateCanceled\")\n```\n\n```go\nvar ErrGateIntegrity = errors.New(\"ErrGateIntegrity\")\n```\n\n```go\nvar ErrNotAllowed = errors.New(\"state transition is not allowed\")\n```\n\n```go\nvar ErrRegistrationServiceOff = errors.New(\"ErrRegistrationServiceOff\")\n```\n\n```go\nvar ErrTooManyExtensions = errors.New(\"ErrTooManyExtensions\")\n```\n\n## Functions\n\n```go\nfunc MapErrorToAgentInfoErrorType(err error) model.ErrorType\n```\n\n```go\nfunc ValidateExternalAgentEvent(e Event) error\n```\n\n## Types\n\n```go\ntype Agent interface {\n\t*ExternalAgent | *InternalAgent\n\tName() string\n\tID() uuid.UUID\n}\n```\n\n```go\ntype AgentInfo struct {\n\tName          string\n\tState         string\n\tSubscriptions []string\n\tErrorType     model.ErrorType\n}\n```\n\n```go\ntype AgentsMap[T Agent] struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewAgentsMap[T Agent]() AgentsMap[T]\n```\n\n```go\nfunc (m *AgentsMap[T]) Clear()\n```\n\n```go\nfunc (m *AgentsMap[T]) FindByID(id uuid.UUID) (agent T, found bool)\n```\n\n```go\nfunc (m *AgentsMap[T]) FindByName(name string) (agent T, found bool)\n```\n\n```go\nfunc (m *AgentsMap[T]) Insert(a T) error\n```\n\n```go\nfunc (m *AgentsMap[T]) Size() int\n```\n\n```go\nfunc (m *AgentsMap[T]) Visit(cb func(T))\n```\n\n```go\ntype Event string\n```\n\n```go\nconst (\n\tShutdownEvent Event = \"SHUTDOWN\"\n)\n```\n\n```go\ntype ExternalAgent struct {\n\tManagedThread Suspendable\n\n\tStartedState        ExternalAgentState\n\tRegisteredState     ExternalAgentState\n\tReadyState          ExternalAgentState\n\tRunningState        ExternalAgentState\n\tInitErrorState      ExternalAgentState\n\tExitErrorState      ExternalAgentState\n\tShutdownFailedState ExternalAgentState\n\tExitedState         ExternalAgentState\n\tLaunchErrorState    ExternalAgentState\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewExternalAgent(name string, initFlow InitFlowSynchronization) *ExternalAgent\n```\n\n```go\nfunc (s *ExternalAgent) ErrorType() model.ErrorType\n```\n\n```go\nfunc (s *ExternalAgent) ExitError(errorType model.ErrorType) error\n```\n\n```go\nfunc (s *ExternalAgent) Exited() error\n```\n\n```go\nfunc (s *ExternalAgent) GetAgentDescription() statejson.ExtensionDescription\n```\n\n```go\nfunc (s *ExternalAgent) GetState() ExternalAgentState\n```\n\n```go\nfunc (s *ExternalAgent) ID() uuid.UUID\n```\n\n```go\nfunc (s *ExternalAgent) InitError(errorType model.ErrorType) error\n```\n\n```go\nfunc (s *ExternalAgent) IsSubscribed(e Event) bool\n```\n\n```go\nfunc (s *ExternalAgent) LaunchError(err model.ErrorType) error\n```\n\n```go\nfunc (s *ExternalAgent) Name() string\n```\n\n```go\nfunc (s *ExternalAgent) Ready() error\n```\n\n```go\nfunc (s *ExternalAgent) Register(events []Event) error\n```\n\n```go\nfunc (s *ExternalAgent) Release()\n```\n\n```go\nfunc (s *ExternalAgent) SetState(state ExternalAgentState)\n```\n\n```go\nfunc (s *ExternalAgent) ShutdownFailed() error\n```\n\n```go\nfunc (s *ExternalAgent) String() string\n```\n\n```go\nfunc (s *ExternalAgent) SubscribedEvents() []string\n```\n\n```go\nfunc (s *ExternalAgent) SuspendUnsafe()\n```\n\n```go\ntype ExternalAgentExitErrorState struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (s *ExternalAgentExitErrorState) ExitError(errorType model.ErrorType) error\n```\n\n```go\nfunc (s *ExternalAgentExitErrorState) Exited() error\n```\n\n```go\nfunc (s *ExternalAgentExitErrorState) InitError(errorType model.ErrorType) error\n```\n\n```go\nfunc (s *ExternalAgentExitErrorState) LaunchError(model.ErrorType) error\n```\n\n```go\nfunc (s *ExternalAgentExitErrorState) Name() string\n```\n\n```go\nfunc (s *ExternalAgentExitErrorState) Ready() error\n```\n\n```go\nfunc (s *ExternalAgentExitErrorState) Register(events []Event) error\n```\n\n```go\nfunc (s *ExternalAgentExitErrorState) ShutdownFailed() error\n```\n\n```go\ntype ExternalAgentExitedState struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (s *ExternalAgentExitedState) ExitError(errorType model.ErrorType) error\n```\n\n```go\nfunc (s *ExternalAgentExitedState) Exited() error\n```\n\n```go\nfunc (s *ExternalAgentExitedState) InitError(errorType model.ErrorType) error\n```\n\n```go\nfunc (s *ExternalAgentExitedState) LaunchError(model.ErrorType) error\n```\n\n```go\nfunc (s *ExternalAgentExitedState) Name() string\n```\n\n```go\nfunc (s *ExternalAgentExitedState) Ready() error\n```\n\n```go\nfunc (s *ExternalAgentExitedState) Register(events []Event) error\n```\n\n```go\nfunc (s *ExternalAgentExitedState) ShutdownFailed() error\n```\n\n```go\ntype ExternalAgentInitErrorState struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (s *ExternalAgentInitErrorState) ExitError(errorType model.ErrorType) error\n```\n\n```go\nfunc (s *ExternalAgentInitErrorState) Exited() error\n```\n\n```go\nfunc (s *ExternalAgentInitErrorState) InitError(errorType model.ErrorType) error\n```\n\n```go\nfunc (s *ExternalAgentInitErrorState) LaunchError(model.ErrorType) error\n```\n\n```go\nfunc (s *ExternalAgentInitErrorState) Name() string\n```\n\n```go\nfunc (s *ExternalAgentInitErrorState) Ready() error\n```\n\n```go\nfunc (s *ExternalAgentInitErrorState) Register(events []Event) error\n```\n\n```go\nfunc (s *ExternalAgentInitErrorState) ShutdownFailed() error\n```\n\n```go\ntype ExternalAgentLaunchErrorState struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (s *ExternalAgentLaunchErrorState) ExitError(errorType model.ErrorType) error\n```\n\n```go\nfunc (s *ExternalAgentLaunchErrorState) Exited() error\n```\n\n```go\nfunc (s *ExternalAgentLaunchErrorState) InitError(errorType model.ErrorType) error\n```\n\n```go\nfunc (s *ExternalAgentLaunchErrorState) LaunchError(model.ErrorType) error\n```\n\n```go\nfunc (s *ExternalAgentLaunchErrorState) Name() string\n```\n\n```go\nfunc (s *ExternalAgentLaunchErrorState) Ready() error\n```\n\n```go\nfunc (s *ExternalAgentLaunchErrorState) Register(events []Event) error\n```\n\n```go\nfunc (s *ExternalAgentLaunchErrorState) ShutdownFailed() error\n```\n\n```go\ntype ExternalAgentReadyState struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (s *ExternalAgentReadyState) ExitError(errorType model.ErrorType) error\n```\n\n```go\nfunc (s *ExternalAgentReadyState) Exited() error\n```\n\n```go\nfunc (s *ExternalAgentReadyState) InitError(errorType model.ErrorType) error\n```\n\n```go\nfunc (s *ExternalAgentReadyState) LaunchError(model.ErrorType) error\n```\n\n```go\nfunc (s *ExternalAgentReadyState) Name() string\n```\n\n```go\nfunc (s *ExternalAgentReadyState) Ready() error\n```\n\n```go\nfunc (s *ExternalAgentReadyState) Register(events []Event) error\n```\n\n```go\nfunc (s *ExternalAgentReadyState) ShutdownFailed() error\n```\n\n```go\ntype ExternalAgentRegisteredState struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (s *ExternalAgentRegisteredState) ExitError(errorType model.ErrorType) error\n```\n\n```go\nfunc (s *ExternalAgentRegisteredState) Exited() error\n```\n\n```go\nfunc (s *ExternalAgentRegisteredState) InitError(errorType model.ErrorType) error\n```\n\n```go\nfunc (s *ExternalAgentRegisteredState) LaunchError(model.ErrorType) error\n```\n\n```go\nfunc (s *ExternalAgentRegisteredState) Name() string\n```\n\n```go\nfunc (s *ExternalAgentRegisteredState) Ready() error\n```\n\n```go\nfunc (s *ExternalAgentRegisteredState) Register(events []Event) error\n```\n\n```go\nfunc (s *ExternalAgentRegisteredState) ShutdownFailed() error\n```\n\n```go\ntype ExternalAgentRunningState struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (s *ExternalAgentRunningState) ExitError(errorType model.ErrorType) error\n```\n\n```go\nfunc (s *ExternalAgentRunningState) Exited() error\n```\n\n```go\nfunc (s *ExternalAgentRunningState) InitError(errorType model.ErrorType) error\n```\n\n```go\nfunc (s *ExternalAgentRunningState) LaunchError(model.ErrorType) error\n```\n\n```go\nfunc (s *ExternalAgentRunningState) Name() string\n```\n\n```go\nfunc (s *ExternalAgentRunningState) Ready() error\n```\n\n```go\nfunc (s *ExternalAgentRunningState) Register(events []Event) error\n```\n\n```go\nfunc (s *ExternalAgentRunningState) ShutdownFailed() error\n```\n\n```go\ntype ExternalAgentShutdownFailedState struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (s *ExternalAgentShutdownFailedState) ExitError(errorType model.ErrorType) error\n```\n\n```go\nfunc (s *ExternalAgentShutdownFailedState) Exited() error\n```\n\n```go\nfunc (s *ExternalAgentShutdownFailedState) InitError(errorType model.ErrorType) error\n```\n\n```go\nfunc (s *ExternalAgentShutdownFailedState) LaunchError(model.ErrorType) error\n```\n\n```go\nfunc (s *ExternalAgentShutdownFailedState) Name() string\n```\n\n```go\nfunc (s *ExternalAgentShutdownFailedState) Ready() error\n```\n\n```go\nfunc (s *ExternalAgentShutdownFailedState) Register(events []Event) error\n```\n\n```go\nfunc (s *ExternalAgentShutdownFailedState) ShutdownFailed() error\n```\n\n```go\ntype ExternalAgentStartedState struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (s *ExternalAgentStartedState) ExitError(errorType model.ErrorType) error\n```\n\n```go\nfunc (s *ExternalAgentStartedState) Exited() error\n```\n\n```go\nfunc (s *ExternalAgentStartedState) InitError(errorType model.ErrorType) error\n```\n\n```go\nfunc (s *ExternalAgentStartedState) LaunchError(err model.ErrorType) error\n```\n\n```go\nfunc (s *ExternalAgentStartedState) Name() string\n```\n\n```go\nfunc (s *ExternalAgentStartedState) Ready() error\n```\n\n```go\nfunc (s *ExternalAgentStartedState) Register(events []Event) error\n```\n\n```go\nfunc (s *ExternalAgentStartedState) ShutdownFailed() error\n```\n\n```go\ntype ExternalAgentState interface {\n\tRegister([]Event) error\n\tReady() error\n\tInitError(errorType model.ErrorType) error\n\tExitError(errorType model.ErrorType) error\n\tShutdownFailed() error\n\tExited() error\n\tLaunchError(model.ErrorType) error\n\tName() string\n}\n```\n\n```go\ntype Gate interface {\n\tRegister(count uint16)\n\tReset()\n\tSetCount(uint16) error\n\tWalkThrough(interface{}) error\n\tAwaitGateCondition(ctx context.Context) (interface{}, error)\n\tCancelWithError(error)\n\tClear()\n}\n```\n\n```go\nfunc NewGate(count uint16) Gate\n```\n\n```go\ntype InitFlowSynchronization interface {\n\tSetExternalAgentsRegisterCount(uint16) error\n\tSetAgentsReadyCount(uint16) error\n\n\tExternalAgentRegistered() error\n\tAwaitExternalAgentsRegistered(context.Context) error\n\n\tRuntimeReady() error\n\tAwaitRuntimeReady(context.Context) error\n\n\tAgentReady() error\n\tAwaitAgentsReady(context.Context) error\n\n\tCancelWithError(error)\n\n\tClear()\n}\n```\n\n```go\nfunc NewInitFlowSynchronization() InitFlowSynchronization\n```\n\n```go\ntype InternalAgent struct {\n\tManagedThread Suspendable\n\n\tStartedState    InternalAgentState\n\tRegisteredState InternalAgentState\n\tRunningState    InternalAgentState\n\tReadyState      InternalAgentState\n\tInitErrorState  InternalAgentState\n\tExitErrorState  InternalAgentState\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewInternalAgent(name string, initFlow InitFlowSynchronization) *InternalAgent\n```\n\n```go\nfunc (s *InternalAgent) ErrorType() model.ErrorType\n```\n\n```go\nfunc (s *InternalAgent) ExitError(errorType model.ErrorType) error\n```\n\n```go\nfunc (s *InternalAgent) GetAgentDescription() statejson.ExtensionDescription\n```\n\n```go\nfunc (s *InternalAgent) GetState() InternalAgentState\n```\n\n```go\nfunc (s *InternalAgent) ID() uuid.UUID\n```\n\n```go\nfunc (s *InternalAgent) InitError(errorType model.ErrorType) error\n```\n\n```go\nfunc (s *InternalAgent) Name() string\n```\n\n```go\nfunc (s *InternalAgent) Ready() error\n```\n\n```go\nfunc (s *InternalAgent) Register(events []Event) error\n```\n\n```go\nfunc (s *InternalAgent) Release()\n```\n\n```go\nfunc (s *InternalAgent) SetState(state InternalAgentState)\n```\n\n```go\nfunc (s InternalAgent) String() string\n```\n\n```go\nfunc (s *InternalAgent) SuspendUnsafe()\n```\n\n```go\ntype InternalAgentExitErrorState struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (s *InternalAgentExitErrorState) ExitError(errorType model.ErrorType) error\n```\n\n```go\nfunc (s *InternalAgentExitErrorState) Exited() error\n```\n\n```go\nfunc (s *InternalAgentExitErrorState) InitError(errorType model.ErrorType) error\n```\n\n```go\nfunc (s *InternalAgentExitErrorState) LaunchError(model.ErrorType) error\n```\n\n```go\nfunc (s *InternalAgentExitErrorState) Name() string\n```\n\n```go\nfunc (s *InternalAgentExitErrorState) Ready() error\n```\n\n```go\nfunc (s *InternalAgentExitErrorState) Register(events []Event) error\n```\n\n```go\nfunc (s *InternalAgentExitErrorState) ShutdownFailed() error\n```\n\n```go\ntype InternalAgentInitErrorState struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (s *InternalAgentInitErrorState) ExitError(errorType model.ErrorType) error\n```\n\n```go\nfunc (s *InternalAgentInitErrorState) Exited() error\n```\n\n```go\nfunc (s *InternalAgentInitErrorState) InitError(errorType model.ErrorType) error\n```\n\n```go\nfunc (s *InternalAgentInitErrorState) LaunchError(model.ErrorType) error\n```\n\n```go\nfunc (s *InternalAgentInitErrorState) Name() string\n```\n\n```go\nfunc (s *InternalAgentInitErrorState) Ready() error\n```\n\n```go\nfunc (s *InternalAgentInitErrorState) Register(events []Event) error\n```\n\n```go\nfunc (s *InternalAgentInitErrorState) ShutdownFailed() error\n```\n\n```go\ntype InternalAgentReadyState struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (s *InternalAgentReadyState) ExitError(errorType model.ErrorType) error\n```\n\n```go\nfunc (s *InternalAgentReadyState) Exited() error\n```\n\n```go\nfunc (s *InternalAgentReadyState) InitError(errorType model.ErrorType) error\n```\n\n```go\nfunc (s *InternalAgentReadyState) LaunchError(model.ErrorType) error\n```\n\n```go\nfunc (s *InternalAgentReadyState) Name() string\n```\n\n```go\nfunc (s *InternalAgentReadyState) Ready() error\n```\n\n```go\nfunc (s *InternalAgentReadyState) Register(events []Event) error\n```\n\n```go\nfunc (s *InternalAgentReadyState) ShutdownFailed() error\n```\n\n```go\ntype InternalAgentRegisteredState struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (s *InternalAgentRegisteredState) ExitError(errorType model.ErrorType) error\n```\n\n```go\nfunc (s *InternalAgentRegisteredState) Exited() error\n```\n\n```go\nfunc (s *InternalAgentRegisteredState) InitError(errorType model.ErrorType) error\n```\n\n```go\nfunc (s *InternalAgentRegisteredState) LaunchError(model.ErrorType) error\n```\n\n```go\nfunc (s *InternalAgentRegisteredState) Name() string\n```\n\n```go\nfunc (s *InternalAgentRegisteredState) Ready() error\n```\n\n```go\nfunc (s *InternalAgentRegisteredState) Register(events []Event) error\n```\n\n```go\nfunc (s *InternalAgentRegisteredState) ShutdownFailed() error\n```\n\n```go\ntype InternalAgentRunningState struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (s *InternalAgentRunningState) ExitError(errorType model.ErrorType) error\n```\n\n```go\nfunc (s *InternalAgentRunningState) Exited() error\n```\n\n```go\nfunc (s *InternalAgentRunningState) InitError(errorType model.ErrorType) error\n```\n\n```go\nfunc (s *InternalAgentRunningState) LaunchError(model.ErrorType) error\n```\n\n```go\nfunc (s *InternalAgentRunningState) Name() string\n```\n\n```go\nfunc (s *InternalAgentRunningState) Ready() error\n```\n\n```go\nfunc (s *InternalAgentRunningState) Register(events []Event) error\n```\n\n```go\nfunc (s *InternalAgentRunningState) ShutdownFailed() error\n```\n\n```go\ntype InternalAgentStartedState struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (s *InternalAgentStartedState) ExitError(errorType model.ErrorType) error\n```\n\n```go\nfunc (s *InternalAgentStartedState) Exited() error\n```\n\n```go\nfunc (s *InternalAgentStartedState) InitError(errorType model.ErrorType) error\n```\n\n```go\nfunc (s *InternalAgentStartedState) LaunchError(model.ErrorType) error\n```\n\n```go\nfunc (s *InternalAgentStartedState) Name() string\n```\n\n```go\nfunc (s *InternalAgentStartedState) Ready() error\n```\n\n```go\nfunc (s *InternalAgentStartedState) Register(events []Event) error\n```\n\n```go\nfunc (s *InternalAgentStartedState) ShutdownFailed() error\n```\n\n```go\ntype InternalAgentState interface {\n\tRegister([]Event) error\n\tReady() error\n\tInitError(errorType model.ErrorType) error\n\tExitError(errorType model.ErrorType) error\n\tName() string\n}\n```\n\n```go\ntype ManagedThread struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewManagedThread() *ManagedThread\n```\n\n```go\nfunc (s *ManagedThread) Lock()\n```\n\n```go\nfunc (s *ManagedThread) Release()\n```\n\n```go\nfunc (s *ManagedThread) SuspendUnsafe()\n```\n\n```go\nfunc (s *ManagedThread) Unlock()\n```\n\n```go\ntype RegistrationService interface {\n\tCreateExternalAgent(agentName string) (*ExternalAgent, error)\n\tCreateInternalAgent(agentName string) (*InternalAgent, error)\n\tPreregisterRuntime(r *Runtime) error\n\tSetFunctionMetadata(metadata model.FunctionMetadata)\n\tGetFunctionMetadata() model.FunctionMetadata\n\tGetRuntime() *Runtime\n\tGetRegisteredAgentsSize() uint16\n\tFindExternalAgentByName(agentName string) (*ExternalAgent, bool)\n\tFindInternalAgentByName(agentName string) (*InternalAgent, bool)\n\tFindExternalAgentByID(agentID uuid.UUID) (*ExternalAgent, bool)\n\tFindInternalAgentByID(agentID uuid.UUID) (*InternalAgent, bool)\n\tTurnOff()\n\tInitFlow() InitFlowSynchronization\n\tGetInternalStateDescriptor(appCtx appctx.ApplicationContext) func() statejson.InternalStateDescription\n\tGetInternalAgents() []*InternalAgent\n\tGetExternalAgents() []*ExternalAgent\n\tGetSubscribedExternalAgents(eventType Event) []*ExternalAgent\n\tCountAgents() int\n\tClear()\n\tAgentsInfo() []AgentInfo\n\tCancelFlows(err error)\n}\n```\n\n```go\nfunc NewRegistrationService(initFlow InitFlowSynchronization) RegistrationService\n```\n\n```go\ntype Runtime struct {\n\tManagedThread Suspendable\n\n\tRuntimeStartedState   RuntimeState\n\tRuntimeInitErrorState RuntimeState\n\tRuntimeReadyState     RuntimeState\n\tRuntimeRunningState   RuntimeState\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewRuntime(initFlow InitFlowSynchronization) *Runtime\n```\n\n```go\nfunc (s *Runtime) GetRuntimeDescription() statejson.RuntimeDescription\n```\n\n```go\nfunc (s *Runtime) GetState() RuntimeState\n```\n\n```go\nfunc (s *Runtime) InitError() error\n```\n\n```go\nfunc (s *Runtime) Ready() error\n```\n\n```go\nfunc (s *Runtime) Release()\n```\n\n```go\nfunc (s *Runtime) SetState(state RuntimeState)\n```\n\n```go\ntype RuntimeInitErrorState struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (s *RuntimeInitErrorState) InitError() error\n```\n\n```go\nfunc (s *RuntimeInitErrorState) Name() string\n```\n\n```go\nfunc (s *RuntimeInitErrorState) Ready() error\n```\n\n```go\ntype RuntimeReadyState struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (s *RuntimeReadyState) InitError() error\n```\n\n```go\nfunc (s *RuntimeReadyState) Name() string\n```\n\n```go\nfunc (s *RuntimeReadyState) Ready() error\n```\n\n```go\ntype RuntimeRunningState struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (s *RuntimeRunningState) InitError() error\n```\n\n```go\nfunc (s *RuntimeRunningState) Name() string\n```\n\n```go\nfunc (s *RuntimeRunningState) Ready() error\n```\n\n```go\ntype RuntimeStartedState struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (s *RuntimeStartedState) InitError() error\n```\n\n```go\nfunc (s *RuntimeStartedState) Name() string\n```\n\n```go\nfunc (s *RuntimeStartedState) Ready() error\n```\n\n```go\ntype RuntimeState interface {\n\tInitError() error\n\tReady() error\n\tName() string\n}\n```\n\n```go\ntype Suspendable interface {\n\tSuspendUnsafe()\n\tRelease()\n\tLock()\n\tUnlock()\n}\n```\n\n","path":"github.com/aws/aws-lambda-runtime-interface-emulator/internal/lambda-managed-instances/core","name":"core","synopsis":"","isRedistributable":true}
