Skip to content

chaos-ma/chaos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chaos云原生微服务框架

2. 安装protoc-gen-go

go install github.com/golang/protobuf/protoc-gen-go@latest

3. 安装protoc-gen-go-grpc

go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest

4. 安装stringer

go install golang.org/x/tools/cmd/stringer@latest

5. protoc-gen-gin工具安装(protobuf 生成gin模板)

  • 5.1 build生成工具
cd chaos/template
go build -o protoc-gen-gin.exe
  • 5.2 将protoc-gen-gin.exe拷贝至go_path的bin目录下

  • 5.3 protoc命令

protoc --proto_path=. --proto_path=../third_party --go_out=./test --go-grpc_out=./test --gin_out=./test test.proto

6. 生成error code工具

  • 6.1 build生成工具
cd chaos/cmd/chaos-codegen
go build -o chaos-codegen.exe
  • 6.2 chaos-codegen.exe拷贝至go_path的bin目录下

About

自研云原生微服务框架

Resources

License

Stars

Watchers

Forks

Packages

No packages published