1
0
mirror of https://github.com/go-micro/go-micro.git synced 2026-05-22 08:55:28 +02:00

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
+4
View File
@@ -521,6 +521,10 @@ func (p *Proxy) serveRequest(ctx context.Context, link client.Client, service, e
}
}
func (p *Proxy) String() string {
return "mucp"
}
// NewSingleHostProxy returns a proxy which sends requests to a single backend
func NewSingleHostProxy(endpoint string) *Proxy {
return &Proxy{