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.
21 lines
478 B
Go
21 lines
478 B
Go
package msg_transfer
|
|
|
|
import (
|
|
"context"
|
|
"live-service/app/user_center/rpc/internal/server"
|
|
"live-service/app/user_center/rpc/internal/svc"
|
|
"live-service/app/user_center/rpc/msg_transfer/danmaku"
|
|
)
|
|
|
|
var (
|
|
danmakuMsgToDb danmaku.MsgToDBHandler
|
|
)
|
|
|
|
func Init(context context.Context, ctx *svc.ServiceContext, svr *server.UserCenterServer) {
|
|
danmakuMsgToDb.Init(context, ctx, svr)
|
|
}
|
|
|
|
func Run() {
|
|
go danmakuMsgToDb.ConsumerGroup.RegisterHandlerAndConsumer(&danmakuMsgToDb)
|
|
}
|