mirror of
https://gitee.com/WuKongDev/WuKongIM.git
synced 2025-12-06 14:59:08 +08:00
16 lines
280 B
Go
16 lines
280 B
Go
package reactor
|
|
|
|
import wkproto "github.com/WuKongIM/WuKongIMGoProto"
|
|
|
|
var User *UserPlus
|
|
var Channel *ChannelPlus
|
|
var Proto wkproto.Protocol = wkproto.New()
|
|
|
|
func RegisterUser(u IUser) {
|
|
User = newUserPlus(u)
|
|
}
|
|
|
|
func RegisterChannel(c IChannel) {
|
|
Channel = newChannelPlus(c)
|
|
}
|