增加redis延迟队列第一版生产者

This commit is contained in:
2022-07-06 18:41:37 +08:00
parent 436fc2626e
commit fe92fa5374
3 changed files with 51 additions and 3 deletions

View File

@@ -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
}