add endpoint data for consul registry

This commit is contained in:
Asim
2015-10-11 12:05:20 +01:00
parent ac995ba983
commit fcbd2acdde
3 changed files with 35 additions and 2 deletions

View File

@@ -21,6 +21,7 @@ func newRpcHandler(handler interface{}) Handler {
for m := 0; m < typ.NumMethod(); m++ {
if e := extractEndpoint(typ.Method(m)); e != nil {
e.Name = name + "." + e.Name
endpoints = append(endpoints, e)
}
}