transfer_middleware/cmd/rpc/pkg/mq/rocketmq.go

26 lines
422 B
Go
Raw Normal View History

2024-06-12 13:46:14 +08:00
package mq
type RocketMq struct {
}
2024-06-18 16:34:14 +08:00
type AliyunRocketMq struct {
AccessKey string
SecretKey string
SecurityToken string
ServerAddress []string
}
//func (n *AliyunRocketMq) Produce(c context.Context, p mq.Producer, topic string, body []byte) error {
//
// err := p.Start()
// if err != nil {
// return err
// }
// err = p.SendSync(c, topic, body)
// if err != nil {
// return err
// }
//
// return nil
//}