reflection update
Some checks failed
build / test (push) Has been cancelled
build / lint (push) Has been cancelled
codeql / analyze (go) (push) Has been cancelled

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2024-01-22 09:14:50 +03:00
parent 9e0a58405f
commit 3036359547
3 changed files with 506 additions and 483 deletions

View File

@@ -36,7 +36,6 @@ func Options(opts ...grpc.ServerOption) server.Option {
return server.SetOption(grpcOptions{}, opts)
}
//
// MaxMsgSize set the maximum message in bytes the server can receive and
// send. Default maximum message size is 4 MB.
func MaxMsgSize(s int) server.Option {
@@ -44,8 +43,8 @@ func MaxMsgSize(s int) server.Option {
}
// Reflection enables reflection support in grpc server
func Reflection(b bool) server.Option {
return server.SetOption(reflectionKey{}, b)
func Reflection(r Reflector) server.Option {
return server.SetOption(reflectionKey{}, r)
}
// UnknownServiceHandler enables support for all services