Skip to content
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

Feature grpc version echo api #321

Closed

Conversation

JayKaku
Copy link
Contributor

@JayKaku JayKaku commented Nov 18, 2023

#318 @stefanprodan : Added version and echo grpc apis and restructured folders and changed package api to package http

Copy link
Owner

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JayKaku I suggest you rewrite the Git history and have a commit for the api/http rename, one for the grpc and another with echo/panic/version.

server := health.NewServer()

// Register grpc apis for refection
echo.RegisterEchoServiceServer(srv, &echoServer{})
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The other servers ake a config and logger args, should't this do the same?

}

func (s *echoServer) Echo (ctx context.Context, message *echo.Message) (*echo.Message, error){
log.Printf("Received message body from client: %s", message.Body)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to use the server logger instead of default one.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright

tash Outdated
@@ -0,0 +1,13 @@
diff --git a/cmd/podinfo/main.go b/cmd/podinfo/main.go
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this please

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure

@JayKaku
Copy link
Contributor Author

JayKaku commented Nov 20, 2023

@JayKaku I suggest you rewrite the Git history and have a commit for the api/http rename, one for the grpc and another with echo/panic/version.

@stefanprodan we are planning to raise another PR because the git history is entangled

@stefanprodan
Copy link
Owner

Superseded by #322

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants