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

Method getTubeFactory

fs/manager.go:175–181  ·  view source on GitHub ↗
(tubeConfig *model.TubeConfig)

Source from the content-addressed store, hash-verified

173}
174
175func (fm *functionManagerImpl) getTubeFactory(tubeConfig *model.TubeConfig) (contube.TubeFactory, error) {
176 factory, exist := fm.options.tubeFactoryMap[tubeConfig.Type]
177 if !exist {
178 return nil, fmt.Errorf("failed to get tube factory: %w, type: %s", common.ErrorTubeFactoryNotFound, tubeConfig.Type)
179 }
180 return factory, nil
181}
182
183func (fm *functionManagerImpl) getRuntimeFactory(t string) (api.FunctionRuntimeFactory, error) {
184 factory, exist := fm.options.runtimeFactoryMap[t]

Callers 1

StartFunctionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected