Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteConsumer ¶
func DeleteConsumer(ctx context.Context, jc *nats.JetstreamClient, consumer *JetstreamConsumer) error
Types ¶
type ConsumerConfig ¶
type ConsumerConfig jetstream.ConsumerConfig
type JetstreamConsumer ¶
type JetstreamConsumer struct {
// contains filtered or unexported fields
}
func NewJetstreamConsumer ¶
func NewJetstreamConsumer(ctx context.Context, jc *nats.JetstreamClient, args JetstreamConsumerArgs) (*JetstreamConsumer, error)
func (*JetstreamConsumer) Consume ¶
func (jc *JetstreamConsumer) Consume(consumeFn func(msg *types.ConsumeMsg) error, opts types.ConsumeOpts) error
Consume implements messaging.Consumer.
type JetstreamConsumerArgs ¶
type JetstreamConsumerArgs struct { Stream string ConsumerConfig ConsumerConfig }
type JetstreamProducer ¶
type JetstreamProducer struct {
// contains filtered or unexported fields
}
func NewJetstreamProducer ¶
func NewJetstreamProducer(jc *nats.JetstreamClient) *JetstreamProducer
func (*JetstreamProducer) Produce ¶
func (c *JetstreamProducer) Produce(ctx context.Context, msg types.ProduceMsg) error
Produce implements messaging.Producer.
func (*JetstreamProducer) ProduceAsync ¶
func (c *JetstreamProducer) ProduceAsync(ctx context.Context, msg types.ProduceMsg) error
ProduceAsync implements messaging.Producer.
Click to show internal directories.
Click to hide internal directories.