MCPcopy Create free account
hub / github.com/daodst/chat / Start

Method Start

userapi/consumers/syncapi_streamevent.go:65–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

63}
64
65func (s *OutputStreamEventConsumer) Start() error {
66 if err := jetstream.JetStreamConsumer(
67 s.ctx, s.jetstream, s.topic, s.durable, s.onMessage,
68 nats.DeliverAll(), nats.ManualAck(),
69 ); err != nil {
70 return err
71 }
72 return nil
73}
74
75func (s *OutputStreamEventConsumer) onMessage(ctx context.Context, msg *nats.Msg) bool {
76 var output types.StreamedEvent

Callers 1

NewInternalAPIFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected