Documentation ¶
Index ¶
- type Producer
- func (p *Producer) Close() (err error)
- func (p *Producer) Send(ctx context.Context, mq ...*primitive.Message) (result *primitive.SendResult, err error)
- func (p *Producer) SendAsync(ctx context.Context, mq []*primitive.Message, ...) (err error)
- func (p *Producer) SendOneWay(ctx context.Context, mq ...*primitive.Message) (err error)
- func (p *Producer) Shutdown() (err error)
- func (p *Producer) Start() (err error)
- type PushConsumer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Producer ¶
type Producer struct {
// contains filtered or unexported fields
}
func (*Producer) SendOneWay ¶
type PushConsumer ¶
type PushConsumer struct {
// contains filtered or unexported fields
}
func NewPushConsumer ¶
func NewPushConsumer(opts ...consumer.Option) (pushConsumer *PushConsumer, err error)
func (*PushConsumer) Close ¶
func (pc *PushConsumer) Close() (err error)
func (*PushConsumer) Shutdown ¶
func (pc *PushConsumer) Shutdown() (err error)
func (*PushConsumer) Start ¶
func (pc *PushConsumer) Start() (err error)
func (*PushConsumer) Subscribe ¶
func (pc *PushConsumer) Subscribe(topic string, selector consumer.MessageSelector, handler func(ctx context.Context, ext ...*primitive.MessageExt) (consumer.ConsumeResult, error)) (err error)
func (*PushConsumer) Unsubscribe ¶
func (pc *PushConsumer) Unsubscribe(topic string) (err error)
Click to show internal directories.
Click to hide internal directories.