Help us shape the future of Go! Take the 2026 Go Developer Survey

kitex-examples

module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2026 License: MIT

README

kitex-examples

Kitex echo 示例——client/server + Thrift IDL + 治理配置样例。

项目主页:https://oekit.github.io/ · 名称由来:Open Easy Kit(开源 · 易用 · 工具集合)

本仓库是 ekit 拆分矩阵的成员(Round-3 自 ekit-kitex 迁出), 使 ekit-kitex 主模块不再依赖 bootstrap 全链。

结构

  • kitex_gen/ — thrift 生成的 echo 服务代码
  • client/、server/ — 示例客户端与服务端(接入 bootstrap + Nacos + 治理配置)
  • idl/echo.thrift — IDL
  • configs/ — retry/rpc_timeout/limit 治理配置样例

运行

go run ./server    # 先起 server(注册到 Nacos / mock 模式)
go run ./client

依赖:ekit-kitex、ekit-bootstrap、ekit-registry、ekit-logx、ekit-tracing。

License

见 LICENSE

Directories

Path Synopsis
kitex_gen
kitex/echo/echoservice
Code generated by Kitex v0.16.3.
Code generated by Kitex v0.16.3.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL