1 Star 0 Fork 0

庞飞/multiapp

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
failed_processor.go 776 Bytes
一键复制 编辑 原始数据 按行查看 历史
庞飞 提交于 2023-10-03 17:10 +08:00 . 合并主框架
package producerconsumer
import (
"gitee.com/pangxianfei/multiapp/config"
message "gitee.com/pangxianfei/multiapp/queue/protocol_buffers"
"gitee.com/pangxianfei/multiapp/kernel/zone"
)
var failedProcessor FailedProcessor
func initializeFailedProcessor() {
failedProcessor = config.Get("queue.failed_db_processor_model").(FailedProcessor)
}
type FailedProcessor interface {
FailedToDatabase(topicName string, channelName string, msg *message.Message, errStr string) error
FailedQueuer
}
type FailedQueuer interface {
RetryTopic() string
RetryHash() string
RetryChannel() string
RetryRetries() uint32
RetryDelay() zone.Duration
RetryParamProtoBytes() []byte
FailedQueueById(id uint) (failedQueuerPtr FailedQueuer, err error)
DeleteQueueById(id uint) error
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/pangxianfei/multiapp.git
git@gitee.com:pangxianfei/multiapp.git
pangxianfei
multiapp
multiapp
v1.2.3

搜索帮助