32 lines
659 B
Go
32 lines
659 B
Go
package main
|
|
|
|
import (
|
|
"gitlink.org.cn/JointCloud/pcm-octopus/http/router"
|
|
)
|
|
|
|
func main() {
|
|
//flag.Parse()
|
|
//
|
|
//c := config.Cfg
|
|
//ctx := svc.NewServiceContext(c)
|
|
//
|
|
//s := zrpc.MustNewServer(c.RpcServerConf, func(grpcServer *grpc.Server) {
|
|
// octopus.RegisterOctopusServer(grpcServer, server.NewOctopusServer(ctx))
|
|
//
|
|
// if c.Mode == service.DevMode || c.Mode == service.TestMode {
|
|
// reflection.Register(grpcServer)
|
|
// }
|
|
//})
|
|
//
|
|
////rpc log
|
|
//s.AddUnaryInterceptors(rpcserver.LoggerInterceptor)
|
|
//
|
|
//defer s.Stop()
|
|
//logx.Infof("Starting rpc server at %s...\n", c.ListenOn)
|
|
//s.Start()
|
|
|
|
rt, _ := router.Create()
|
|
_ = rt.Run(":2025")
|
|
|
|
}
|