You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
469 B
Go

package msg_transfer
import (
"dcg/game/msg_transfer/danmaku"
"dcg/game/msg_transfer/gift"
"dcg/game/svc"
)
var (
danmakuMsgToPush danmaku.MsgToPushHandler
giftMsgToPush gift.MsgToPushHandler
)
func Init(ctx *svc.ServiceContext) {
danmakuMsgToPush.Init(ctx)
giftMsgToPush.Init(ctx)
}
func Run() {
go danmakuMsgToPush.ConsumerGroup.RegisterHandlerAndConsumer(&danmakuMsgToPush)
go giftMsgToPush.ConsumerGroup.RegisterHandlerAndConsumer(&giftMsgToPush)
}