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,20 @@
package grpc
import (
v1pb "go-common/app/service/live/rtc/api/v1"
"go-common/app/service/live/rtc/internal/conf"
v1srv "go-common/app/service/live/rtc/internal/service/v1"
"go-common/library/net/rpc/warden"
)
// TODO
func New(c *conf.Config) *warden.Server {
ws := warden.NewServer(nil)
v1pb.RegisterRtcServer(ws.Server(), v1srv.NewRtcService(c))
ws, err := ws.Start()
if err != nil {
panic(err)
}
return ws
}