1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-06-12 22:07:47 +02:00

Add String method to all interfaces

This commit is contained in:
Asim
2015-12-19 21:56:14 +00:00
parent d7b3765c71
commit be43d827c7
17 changed files with 73 additions and 0 deletions

View File

@ -185,6 +185,8 @@ func (s *rpcServer) Register() error {
Metadata: config.Metadata(),
}
node.Metadata["transport"] = config.transport.String()
s.RLock()
var endpoints []*registry.Endpoint
for _, e := range s.handlers {
@ -309,3 +311,7 @@ func (s *rpcServer) Stop() error {
s.exit <- ch
return <-ch
}
func (s *rpcServer) String() string {
return "rpc"
}