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

Function WithTubeFactory

fs/manager.go:91–96  ·  view source on GitHub ↗
(name string, factory contube.TubeFactory)

Source from the content-addressed store, hash-verified

89}
90
91func WithTubeFactory(name string, factory contube.TubeFactory) ManagerOption {
92 return managerOptionFunc(func(c *managerOptions) (*managerOptions, error) {
93 c.tubeFactoryMap[name] = factory
94 return c, nil
95 })
96}
97func WithQueueFactory(factory contube.TubeFactory) ManagerOption {
98 return managerOptionFunc(func(c *managerOptions) (*managerOptions, error) {
99 c.queueFactory = factory

Callers 2

NewServerFunction · 0.92
TestFMWithGRPCRuntimeFunction · 0.92

Calls 1

managerOptionFuncFuncType · 0.85

Tested by 1

TestFMWithGRPCRuntimeFunction · 0.74