command
module
Version:
v0.0.0-...-e1c47d4
Opens a new window with list of versions in this module.
Published: May 13, 2024
License: MIT
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
go-kit学习指南 - 多协议支持
文档:https://blog.fengjx.com/pages/efb886/
安装编译工具
编译 proto 文件
cd pb
bash build.sh
编译后会生成 greet.pb.go
和 greet_grpc.pb.go
两个文件
$ ls
build.sh greet.pb.go greet.proto greet_grpc.pb.go
启动服务
go run main.go
测试
http 协议
# sya-hello
curl http://localhost:8080/say-hello?name=fengjx
{"data":{"msg":"hi: fengjx"},"msg":"ok","status":0}
grpc 协议
go run cmd/greetcli/mian.go
2024/04/20 15:46:10 hi: fengjx
相关项目
- luchen 基于go-kit封装的微服务框架
- lca 基于 amis 实现的低代码后台系统
- glca lca 接口实现。基于
luchen
框架开发
- lc glca 的命令行工具
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
cmd
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.