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