This commit is contained in:
laodaming
2023-08-08 12:22:15 +08:00
parent ff86cceb17
commit 93191d3beb
11 changed files with 255 additions and 6 deletions

View File

@@ -1,6 +1,8 @@
package mq_consumer_factory
import "context"
// 消费mq消息要实现对应Run方法
type MqHandle interface {
Run(data []byte) error
Run(ctx context.Context, data []byte) error
}