增加集群部署支持,修复定时任务分组添加后选项不显示

This commit is contained in:
孟帅
2023-07-26 16:49:09 +08:00
parent 996ed818ee
commit 12bf36cd15
22 changed files with 1185 additions and 529 deletions

View File

@@ -0,0 +1,16 @@
// Package pubsub
// @Link https://github.com/bufanyun/hotgo
// @Copyright Copyright (c) 2023 HotGo CLI
// @Author Ms <133814250@qq.com>
// @License https://github.com/bufanyun/hotgo/blob/master/LICENSE
package pubsub
import (
"context"
"github.com/gogf/gf/v2/frame/g"
)
// Publish 推送消息
func Publish(ctx context.Context, channel string, message interface{}) (int64, error) {
return g.Redis().Publish(ctx, channel, message)
}