chaos

module
v0.5.8 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: MIT

README

Chaos云原生微服务框架

1. 安装protobuf:https://github.com/protocolbuffers/protobuf/releases
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目录下

Directories

Path Synopsis
cmd
chaos-codegen Module
common
core
Package core implements some core functions used by apimachinery.
Package core implements some core functions used by apimachinery.
core
Package errors provides simple error handling primitives.
Package errors provides simple error handling primitives.
kubernetes
Package kuberegistry registry simply implements the Kubernetes-based Registry
Package kuberegistry registry simply implements the Kubernetes-based Registry
httpserver/middlewares/auth
Package auth defines authentication strategy like Basic, Bearer.
Package auth defines authentication strategy like Basic, Bearer.
third_party
forked/murmur3
Package murmur3 implements Austin Appleby's non-cryptographic MurmurHash3.
Package murmur3 implements Austin Appleby's non-cryptographic MurmurHash3.
utils

Jump to

Keyboard shortcuts

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