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

Method NewSinkTube

fs/contube/pulsar.go:65–71  ·  view source on GitHub ↗
(ctx context.Context, configMap ConfigMap)

Source from the content-addressed store, hash-verified

63}
64
65func (f *PulsarEventQueueFactory) NewSinkTube(ctx context.Context, configMap ConfigMap) (chan<- Record, error) {
66 config := SinkQueueConfig{}
67 if err := configMap.ToConfigStruct(&config); err != nil {
68 return nil, err
69 }
70 return f.newSinkChan(ctx, &config)
71}
72
73func NewPulsarEventQueueFactory(ctx context.Context, configMap ConfigMap) (TubeFactory, error) {
74 config, err := NewPulsarTubeFactoryConfig(configMap)

Callers

nothing calls this directly

Calls 1

ToConfigStructMethod · 0.80

Tested by

no test coverage detected