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

Function New

perf/perf.go:59–73  ·  view source on GitHub ↗
(config *Config)

Source from the content-addressed store, hash-verified

57}
58
59func New(config *Config) Perf {
60 p := &perf{
61 config: config,
62 }
63 if config.QueueBuilder == nil {
64 p.tubeBuilder = func(ctx context.Context) (contube.TubeFactory, error) {
65 return contube.NewPulsarEventQueueFactory(ctx, (&contube.PulsarTubeFactoryConfig{
66 PulsarURL: config.PulsarURL,
67 }).ToConfigMap())
68 }
69 } else {
70 p.tubeBuilder = config.QueueBuilder
71 }
72 return p
73}
74
75type Person struct {
76 Name string `json:"name"`

Callers 3

runPerfFunction · 0.92

Calls 2

ToConfigMapMethod · 0.45