A demo with Kitex
and Gorm
- Use
thrift
IDL to defineRPC
interface - Use
kitex
to generate code - Use
Gorm
andMySQL
This demo use thrift
IDL to define RPC
interface. The specific interface define in user.thrift
This demo use kitex
to generate code. The use of kitex
refers
to kitex
The kitex
commands used can be found in Makefile
This demo use Gorm
to operate MySQL
and refers to Gorm
cd bizdemo/kitex_gorm && docker-compose up
cd bizdemo/kitex_gorm
go build -o kitex_gorm && ./kitex_gorm