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

Function WithRuntimeFactory

fs/manager.go:104–109  ·  view source on GitHub ↗
(name string, factory api.FunctionRuntimeFactory)

Source from the content-addressed store, hash-verified

102}
103
104func WithRuntimeFactory(name string, factory api.FunctionRuntimeFactory) ManagerOption {
105 return managerOptionFunc(func(c *managerOptions) (*managerOptions, error) {
106 c.runtimeFactoryMap[name] = factory
107 return c, nil
108 })
109}
110
111func WithInstanceFactory(factory api.FunctionInstanceFactory) ManagerOption {
112 return managerOptionFunc(func(c *managerOptions) (*managerOptions, error) {

Callers 2

NewServerFunction · 0.92
TestFMWithGRPCRuntimeFunction · 0.92

Calls 1

managerOptionFuncFuncType · 0.85

Tested by 1

TestFMWithGRPCRuntimeFunction · 0.74