Enable gRPC reflection to support gRPCurl and gRPCui
This commit is contained in:
parent
af0a7a2375
commit
03f3ae4173
1 changed files with 3 additions and 0 deletions
|
@ -9,6 +9,7 @@ import (
|
|||
"gitlab.com/inetmock/inetmock/pkg/logging"
|
||||
"go.uber.org/zap"
|
||||
"google.golang.org/grpc"
|
||||
"google.golang.org/grpc/reflection"
|
||||
)
|
||||
|
||||
type INetMockAPI interface {
|
||||
|
@ -57,6 +58,8 @@ func (i *inetmockAPI) StartServer() (err error) {
|
|||
eventStream: i.app.EventStream(),
|
||||
})
|
||||
|
||||
reflection.Register(i.server)
|
||||
|
||||
go i.startServerAsync(lis)
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue