transport: allow InTapHandle to return status errors (#4365)

This commit is contained in:
Doug Fawley
2021-05-07 14:37:52 -07:00
committed by GitHub
parent aff517ba8a
commit 328b1d171a
5 changed files with 163 additions and 96 deletions

View File

@ -418,6 +418,11 @@ func ChainStreamInterceptor(interceptors ...StreamServerInterceptor) ServerOptio
// InTapHandle returns a ServerOption that sets the tap handle for all the server
// transport to be created. Only one can be installed.
//
// Experimental
//
// Notice: This API is EXPERIMENTAL and may be changed or removed in a
// later release.
func InTapHandle(h tap.ServerInHandle) ServerOption {
return newFuncServerOption(func(o *serverOptions) {
if o.inTapHandle != nil {