This commit is contained in:
孟帅
2022-11-24 23:37:34 +08:00
parent 4ffe54b6ac
commit 29bda0dcdd
1487 changed files with 97869 additions and 96539 deletions

View File

@@ -0,0 +1,29 @@
// Package queues
// @Link https://github.com/bufanyun/hotgo
// @Copyright Copyright (c) 2022 HotGo CLI
// @Author Ms <133814250@qq.com>
// @License https://github.com/bufanyun/hotgo/blob/master/LICENSE
//
package queues
import (
"context"
"hotgo/internal/library/queue"
)
type jobStrategy interface {
Listen(ctx context.Context)
handle(ctx context.Context, mqMsg queue.MqMsg) (err error)
}
var (
jobList = []jobStrategy{
SysLog,
}
)
func Run(ctx context.Context) {
for _, job := range jobList {
job.Listen(ctx)
}
}