2022-07-06 18:10:33 +08:00
|
|
|
// Package delay ...
|
|
|
|
//
|
|
|
|
// Description : delay ...
|
|
|
|
//
|
|
|
|
// Author : go_developer@163.com<白茶清欢>
|
|
|
|
//
|
|
|
|
// Date : 2022-07-06 18:06
|
|
|
|
package delay
|
|
|
|
|
2022-07-06 18:41:37 +08:00
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
)
|
|
|
|
|
2022-07-06 18:10:33 +08:00
|
|
|
// IProduce 生产者约束
|
|
|
|
//
|
|
|
|
// Author : go_developer@163.com<白茶清欢>
|
|
|
|
//
|
|
|
|
// Date : 18:06 2022/7/6
|
|
|
|
type IProduce interface {
|
|
|
|
// Produce 生产数据
|
2022-07-06 18:41:37 +08:00
|
|
|
Produce(ctx context.Context, data ...*Queue) error
|
2022-07-06 18:10:33 +08:00
|
|
|
}
|