-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement List for Service #1077
Conversation
why using a stream here. We don't have any pub/sub system for services yet so there is no reason to have a stream here. Let's simplify and return a list of services directly and let grpc/protobuf handle that |
@krhubert I agree with Anthony. A stream seems overkill for now.. Let's develop the simplest api we can. |
0618aa0
to
8e73c14
Compare
|
||
resp := &protobuf_api.ListServiceResponse{} | ||
for _, service := range services { | ||
resp.Services = append(resp.Services, ToProtoService(service)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there is a ToProtoServices
function. Let's use it or remove it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mapping.go
> ToProtoServices
|
||
resp := &protobuf_api.ListServiceResponse{} | ||
for _, service := range services { | ||
resp.Services = append(resp.Services, ToProtoService(service)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mapping.go
> ToProtoServices
Dep on: #1072