MCPcopy Index your code
hub / github.com/FunctionStream/function-stream / getRuntimeFactory

Method getRuntimeFactory

fs/manager.go:183–189  ·  view source on GitHub ↗
(t string)

Source from the content-addressed store, hash-verified

181}
182
183func (fm *functionManagerImpl) getRuntimeFactory(t string) (api.FunctionRuntimeFactory, error) {
184 factory, exist := fm.options.runtimeFactoryMap[t]
185 if !exist {
186 return nil, fmt.Errorf("failed to get runtime factory: %w, type: %s", common.ErrorRuntimeFactoryNotFound, t)
187 }
188 return factory, nil
189}
190
191func (fm *functionManagerImpl) createFuncCtx() api.FunctionContext {
192 return NewFuncCtxImpl(fm.options.stateStore)

Callers 1

StartFunctionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected