Files
WuKongIM/internal/reactor/reactor.go
2024-12-15 00:52:16 +08:00

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)
}