Initial commit

This commit is contained in:
Donny
2019-04-22 20:46:32 +08:00
commit 49ab8aadd1
25441 changed files with 4055000 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
package grpc
import (
v1pb "go-common/app/service/live/zeus/api/v1"
"go-common/app/service/live/zeus/internal/conf"
v1srv "go-common/app/service/live/zeus/internal/service/v1"
"go-common/library/net/rpc/warden"
)
func New(c *conf.Config, s *v1srv.ZeusService) *warden.Server {
ws := warden.NewServer(nil)
v1pb.RegisterZeusServer(ws.Server(), s)
ws, err := ws.Start()
if err != nil {
panic(err)
}
return ws
}