Documentation ¶ Index ¶ type Pipe func New(c *cmq.CMQ, s *streaming.Streaming, logger *zap.Logger, tracer trace.Tracer) *Pipe func (p *Pipe) Pipe(topic string) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Pipe ¶ type Pipe struct { CMQ *cmq.CMQ Streaming *streaming.Streaming Tracer trace.Tracer Logger *zap.Logger } func New ¶ func New(c *cmq.CMQ, s *streaming.Streaming, logger *zap.Logger, tracer trace.Tracer) *Pipe New create pipe to pipe data from streaming to jetstream. you can use a single pipe instance for mutiple topics. func (*Pipe) Pipe ¶ func (p *Pipe) Pipe(topic string) Pipe start piping messages from streaming to jetstream based on given topic. its subscription on streaming isn't durable and it always start from 1 second behind. the reason here is to reduce load on the streaming server as much as possible. Source Files ¶ View all Source files pipe.go Click to show internal directories. Click to hide internal directories.