Documentation ¶
Index ¶
- type Producer
- func (this *Producer) NewCustomConsumer(opts ...producer.Option) error
- func (this *Producer) NewProducer(servers []string) error
- func (this *Producer) SendAsync(topic, json string, ...) error
- func (this *Producer) SendSync(topic, json string) (*primitive.SendResult, error)
- func (this *Producer) Shutdown() error
- func (this *Producer) Start() error
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) NewCustomConsumer ¶
func (*Producer) NewProducer ¶
func (*Producer) SendAsync ¶
func (this *Producer) SendAsync(topic, json string, mq func(ctx context.Context, result *primitive.SendResult, err error)) error
SendAsync 异步方法
Click to show internal directories.
Click to hide internal directories.