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

Function WithRuntimeFactoryBuilder

server/server.go:133–141  ·  view source on GitHub ↗
(
	name string,
	builder func(configMap common.ConfigMap) (api.FunctionRuntimeFactory, error),
)

Source from the content-addressed store, hash-verified

131}
132
133func WithRuntimeFactoryBuilder(
134 name string,
135 builder func(configMap common.ConfigMap) (api.FunctionRuntimeFactory, error),
136) ServerOption {
137 return serverOptionFunc(func(o *serverOptions) (*serverOptions, error) {
138 o.runtimeFactoryBuilders[name] = builder
139 return o, nil
140 })
141}
142
143func WithRuntimeFactoryBuilders(
144 builder map[string]func(configMap common.ConfigMap) (api.FunctionRuntimeFactory, error),

Calls 1

serverOptionFuncFuncType · 0.85

Tested by 2

TestStatefulFunctionFunction · 0.68