Publish publishes a message to a stream from JetStream.
(subj string, data []byte, opts ...PubOpt)
| 627 | |
| 628 | // Publish publishes a message to a stream from JetStream. |
| 629 | func (js *js) Publish(subj string, data []byte, opts ...PubOpt) (*PubAck, error) { |
| 630 | return js.PublishMsg(&Msg{Subject: subj, Data: data}, opts...) |
| 631 | } |
| 632 | |
| 633 | // PubAckFuture is a future for a PubAck. |
| 634 | type PubAckFuture interface { |
nothing calls this directly
no test coverage detected