1 Star 0 Fork 0

Stefan/go-zero

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
consumer.go 281 Bytes
一键复制 编辑 原始数据 按行查看 历史
kevwan 提交于 2023-01-24 16:32 +08:00 . chore: change interface{} to any (#2818)
package queue
type (
// A Consumer interface represents a consumer that can consume string messages.
Consumer interface {
Consume(string) error
OnEvent(event any)
}
// ConsumerFactory defines the factory to generate consumers.
ConsumerFactory func() (Consumer, error)
)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/stefan886/go-zero.git
git@gitee.com:stefan886/go-zero.git
stefan886
go-zero
go-zero
45236c288c2b

搜索帮助