Add proxy string method

This commit is contained in:
Asim Aslam
2019-12-16 15:18:20 +00:00
parent 303adca500
commit 1ea6390eae
4 changed files with 14 additions and 0 deletions

View File

@@ -136,6 +136,10 @@ func (p *Proxy) ServeRequest(ctx context.Context, req server.Request, rsp server
}
}
func (p *Proxy) String() string {
return "grpc"
}
// NewProxy returns a new grpc proxy server
func NewProxy(opts ...proxy.Option) proxy.Proxy {
var options proxy.Options