kla-go --- // grpc client example
kla-java --- // grpc server example
README
Install Java 8
Install Golang 1.13
brew install protobuf
go get -u github.com/golang/protobuf/protoc-gen-go
go install github.com/golang/protobuf/protoc-gen-go
export PATH=$PATH:$HOME/go/bin
cd kla-java; gradle clean build // it will auto generate java code
cd kla-go/proto
protoc --go_out=plugins=grpc:. *.proto // it will generate go code
Run Java code from IntelliJ
go build cmd/main.go; ./main
1. Create database name as kla
CREATE TABLE `session` (
`session_id` varchar(36) NOT NULL,
`name` varchar(50) NOT NULL DEFAULT '',
`talk` varchar(50) DEFAULT NULL,
`abstract` varchar(50) NOT NULL,
`session_time` int(64) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`session_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
1. Java
2. Golang
3. gRPC
4. Spring boot
5. ProtoBuf
6. Gradle
7. MySQL