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

grpc #16

Open
lc-1010 opened this issue Jul 7, 2023 · 1 comment
Open

grpc #16

lc-1010 opened this issue Jul 7, 2023 · 1 comment

Comments

@lc-1010
Copy link
Owner

lc-1010 commented Jul 7, 2023

  • 增加rpc 服务
lc-1010 added a commit that referenced this issue Jul 7, 2023
- Add "GetTagList" RPC return type to "GetTagListRequest"
#16
lc-1010 added a commit that referenced this issue Jul 9, 2023
- Add api for get tag
#16
lc-1010 added a commit that referenced this issue Jul 10, 2023
- Add grpc client and server
#16
lc-1010 added a commit that referenced this issue Jul 10, 2023
- Rename blog_api sdk and fix bug

#16
lc-1010 added a commit that referenced this issue Jul 12, 2023
This commit adds support for grpc and HTTP1.1 services using the grpc-gateway library. The `runGrpcGatewayServer` function is modified to create a new ServeMux and register the gRPC handler from the endpoint. The `runHttpServer` function is updated to create a new ServeMux that handles HTTP requests. The `main` function is modified to start the gRPC server and the HTTP server.

The new functionality allows the project to handle both gRPC and HTTP1.1 requests, providing more flexibility and compatibility with different clients.

#16
lc-1010 added a commit that referenced this issue Jul 13, 2023
lc-1010 added a commit that referenced this issue Jul 16, 2023
- Add client interceptor
 #16
lc-1010 added a commit that referenced this issue Jul 18, 2023
- add ChainUnaryInterceptor for client
- Replace grpc_middleware.ChainUnaryServer with grpc.ChainUnaryInterceptor at server

#16
lc-1010 added a commit that referenced this issue Jul 19, 2023
- update interceptor and test different package

#16
lc-1010 added a commit that referenced this issue Jul 20, 2023
- Add etcd server
#16
lc-1010 added a commit that referenced this issue Jul 22, 2023
- etcd and gprc isn't compatible See:etcd-io/etcd#15286 (comment)

#16
@lc-1010
Copy link
Owner Author

lc-1010 commented Jul 22, 2023

在更新客户端和etcd时版本不兼容,低版本可以但是有影响到opentelemetry
参考 cannot use target.Endpoint as string value in struct literal
最后只能使用replace google.golang.org/grpc => google.golang.org/grpc v1.52.3

lc-1010 added a commit that referenced this issue Jul 24, 2023
lc-1010 added a commit that referenced this issue Jul 25, 2023
- Refactor code and add new functionality
- Generate Go code for Protocol Buffer messages

This commit adds functionality to read a Protocol Buffer message from standard input, generate Go code for each message, and write the generated code to standard output.

The generated code includes a Go struct for each message, with fields corresponding to the fields in the Protocol Buffer message.

This commit also includes the necessary command-line parameters and options for generating the code.

#16 #17
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

No branches or pull requests

1 participant