|
|
@ -63,13 +63,14 @@ func run(cmd *cobra.Command, args []string) { |
|
|
|
} |
|
|
|
} |
|
|
|
for _, e := range s.Elements { |
|
|
|
for _, e := range s.Elements { |
|
|
|
r, ok := e.(*proto.RPC) |
|
|
|
r, ok := e.(*proto.RPC) |
|
|
|
if ok { |
|
|
|
if !ok { |
|
|
|
|
|
|
|
continue |
|
|
|
|
|
|
|
} |
|
|
|
cs.Methods = append(cs.Methods, &Method{ |
|
|
|
cs.Methods = append(cs.Methods, &Method{ |
|
|
|
Service: s.Name, Name: caser.String(r.Name), Request: r.RequestType, |
|
|
|
Service: s.Name, Name: caser.String(r.Name), Request: r.RequestType, |
|
|
|
Reply: r.ReturnsType, Type: getMethodType(r.StreamsRequest, r.StreamsReturns), |
|
|
|
Reply: r.ReturnsType, Type: getMethodType(r.StreamsRequest, r.StreamsReturns), |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
res = append(res, cs) |
|
|
|
res = append(res, cs) |
|
|
|
}), |
|
|
|
}), |
|
|
|
) |
|
|
|
) |
|
|
|