Ai
1 Star 0 Fork 0

Souki/go-framework

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
feature_subscribe_group.go 565 Bytes
一键复制 编辑 原始数据 按行查看 历史
sage 提交于 2023-03-18 15:54 +08:00 . modify name
package ws
//ISubscribeGroup 订阅频道组功能
type ISubscribeGroup interface {
Name() string
IClientsMgr
}
//FeatureSubscribeGroup ws订阅Group功能
type FeatureSubscribeGroup struct {
group string
IClientsMgr
}
func NewFeatureSubscribeGroup(name ...string) *FeatureSubscribeGroup {
n := ""
if len(name) > 0 {
n = name[0]
}
return &FeatureSubscribeGroup{
group: n,
IClientsMgr: NewClientsMgr(),
}
}
func (g *FeatureSubscribeGroup) Name() string {
return g.group
}
func (g *FeatureSubscribeGroup) SetName(n string) {
g.group = n
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/scottq/go-framework.git
git@gitee.com:scottq/go-framework.git
scottq
go-framework
go-framework
v1.1.46

搜索帮助