调整Centrifugo grpc初始化位置
This commit is contained in:
parent
66ae6914b5
commit
dd3d29149a
@ -43,7 +43,6 @@ func InitSimulationRouter(api *gin.RouterGroup, authMiddleware *jwt.GinJWTMiddle
|
|||||||
|
|
||||||
// 初始化地图信息
|
// 初始化地图信息
|
||||||
initPublishMapInfo()
|
initPublishMapInfo()
|
||||||
apiproto.InitClient()
|
|
||||||
apiproto.Register(&apiproto.SimulationServer{})
|
apiproto.Register(&apiproto.SimulationServer{})
|
||||||
apiproto.Register(&apiproto.SimulationIBPServer{})
|
apiproto.Register(&apiproto.SimulationIBPServer{})
|
||||||
apiproto.Register(&apiproto.SimulationPSLServer{})
|
apiproto.Register(&apiproto.SimulationPSLServer{})
|
||||||
|
2
main.go
2
main.go
@ -8,6 +8,7 @@ import (
|
|||||||
"joylink.club/bj-rtsts-server/api"
|
"joylink.club/bj-rtsts-server/api"
|
||||||
"joylink.club/bj-rtsts-server/config"
|
"joylink.club/bj-rtsts-server/config"
|
||||||
"joylink.club/bj-rtsts-server/docs"
|
"joylink.club/bj-rtsts-server/docs"
|
||||||
|
apiproto "joylink.club/bj-rtsts-server/grpcproto"
|
||||||
"joylink.club/bj-rtsts-server/middleware"
|
"joylink.club/bj-rtsts-server/middleware"
|
||||||
|
|
||||||
"joylink.club/bj-rtsts-server/third_party"
|
"joylink.club/bj-rtsts-server/third_party"
|
||||||
@ -26,6 +27,7 @@ import (
|
|||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
engine := InitServer()
|
engine := InitServer()
|
||||||
|
apiproto.InitClient()
|
||||||
third_party.Init()
|
third_party.Init()
|
||||||
authMiddleware := middleware.InitGinJwtMiddleware()
|
authMiddleware := middleware.InitGinJwtMiddleware()
|
||||||
router := engine.Group("/api")
|
router := engine.Group("/api")
|
||||||
|
Loading…
Reference in New Issue
Block a user