1 Star 0 Fork 0

CaptialSTeam/ubdframe

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
feature_subscribe_group.go 573 Bytes
一键复制 编辑 原始数据 按行查看 历史
sage 提交于 3个月前 . add admin app
package wsserver
// 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/captials-team/ubdframe.git
git@gitee.com:captials-team/ubdframe.git
captials-team
ubdframe
ubdframe
v1.0.1

搜索帮助