Add gRPC reflection to the server

This commit is contained in:
Marc Di Luzio 2020-07-26 22:48:48 +01:00
parent 49ffa18f23
commit a321e5d72f

View file

@ -11,6 +11,7 @@ import (
"github.com/mdiluz/rove/proto/roveapi"
"github.com/robfig/cron"
"google.golang.org/grpc"
"google.golang.org/grpc/reflection"
)
const (
@ -105,6 +106,7 @@ func (s *Server) Initialise(fillWorld bool) (err error) {
}
s.grpcServ = grpc.NewServer()
roveapi.RegisterRoveServer(s.grpcServ, s)
reflection.Register(s.grpcServ)
return nil
}