增加redis延迟队列第一版生产者
This commit is contained in:
@@ -7,6 +7,10 @@
|
||||
// Date : 2022-07-06 18:06
|
||||
package delay
|
||||
|
||||
import (
|
||||
"context"
|
||||
)
|
||||
|
||||
// IProduce 生产者约束
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
@@ -14,5 +18,5 @@ package delay
|
||||
// Date : 18:06 2022/7/6
|
||||
type IProduce interface {
|
||||
// Produce 生产数据
|
||||
Produce(data *Queue) error
|
||||
Produce(ctx context.Context, data ...*Queue) error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user