allow to catch response headers

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2022-11-15 12:53:04 +03:00
parent 3591d02d42
commit 83b6567d3e
8 changed files with 103 additions and 16 deletions

3
rpc.go
View File

@@ -45,6 +45,9 @@ func (g *Generator) rpcGenerate(component string, plugin *protogen.Plugin, genCl
g.generateServiceServerMethods(gfile, service)
g.generateServiceRegister(gfile, service)
}
if component == "grpc" && g.reflection {
g.generateServiceDesc(gfile, file, service)
}
}
}