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

Function WithRuntimeFactoryBuilders

server/server.go:143–152  ·  view source on GitHub ↗
(
	builder map[string]func(configMap common.ConfigMap) (api.FunctionRuntimeFactory, error),
)

Source from the content-addressed store, hash-verified

141}
142
143func WithRuntimeFactoryBuilders(
144 builder map[string]func(configMap common.ConfigMap) (api.FunctionRuntimeFactory, error),
145) ServerOption {
146 return serverOptionFunc(func(o *serverOptions) (*serverOptions, error) {
147 for n, b := range builder {
148 o.runtimeFactoryBuilders[n] = b
149 }
150 return o, nil
151 })
152}
153
154func WithStateStoreLoader(loader func(c *StateStoreConfig) (api.StateStore, error)) ServerOption {
155 return serverOptionFunc(func(o *serverOptions) (*serverOptions, error) {

Callers 3

execFunction · 0.92
NewDefaultServerFunction · 0.85
startStandaloneSvrFunction · 0.85

Calls 1

serverOptionFuncFuncType · 0.85

Tested by 1

startStandaloneSvrFunction · 0.68