Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsumerConfig ¶
type Producer ¶
type Producer struct {
// contains filtered or unexported fields
}
func NewProducer ¶
func NewProducer(config *ProducerConfig) *Producer
func (*Producer) SendAsyncMsg ¶
func (*Producer) SendSyncMsg ¶
type ProducerConfig ¶
type PushConsumer ¶
type PushConsumer struct {
// contains filtered or unexported fields
}
func NewPushConsumer ¶
func NewPushConsumer(config *ConsumerConfig) *PushConsumer
func (*PushConsumer) Shutdown ¶
func (pc *PushConsumer) Shutdown() error
func (*PushConsumer) Start ¶
func (pc *PushConsumer) Start() error
func (*PushConsumer) Subscribe ¶
func (pc *PushConsumer) Subscribe(cb func(context.Context, *primitive.MessageExt) error) *PushConsumer
Click to show internal directories.
Click to hide internal directories.