package db import ( "mongo.games.com/game/db/model" "mongo.games.com/game/db/proto/lottery" ) /* grpc 服务端注册 */ // registerGrpcServer 注册grpc服务 func registerGrpcServer() { lottery.RegisterLotteryServerServer(GrpcServer, new(model.LotteryServer)) } var LotteryClient lottery.LotteryServerClient func registerGrpcClient() { LotteryClient = lottery.NewLotteryServerClient(GrpcClientConn) }