You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
422 B
18 lines
422 B
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 |
|
}
|
|
|