| 141 | } |
| 142 | |
| 143 | func 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 | |
| 154 | func WithStateStoreLoader(loader func(c *StateStoreConfig) (api.StateStore, error)) ServerOption { |
| 155 | return serverOptionFunc(func(o *serverOptions) (*serverOptions, error) { |