Quick start
Install protoc plugins
## Generate .pb.go files
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
## Generate _grpc.pb.go files, gRPC server and client
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
## Generate _amqp.pb.go files, RabbitMQ server and client
go install github.com/asjard/asjard/cmd/protoc-gen-go-amqp@latest
## Generate _asynq.pb.go files, Asynq server and client
go install github.com/asjard/asjard/cmd/protoc-gen-go-asynq@latest
## Generate _rest.pb.go files, HTTP server
go install github.com/asjard/asjard/cmd/protoc-gen-go-rest@latest
## Generate _rest_gw.pb.go files, HTTP protocol to gRPC protocol
go install github.com/asjard/asjard/cmd/protoc-gen-go-rest2grpc-gw@latest
## Generate _validate.pb.go files, parameter validation
go install github.com/asjard/asjard/cmd/protoc-gen-go-validate@latest
## Generate enum.pb.ts files, TypeScript enum generation
go install github.com/asjard/asjard/cmd/protoc-gen-ts-enum@latest
## Generate umi.pb.ts files, Umi request generation
go install github.com/asjard/asjard/cmd/protoc-gen-ts-umi@latest
## Generate pb.ts files, TypeScript type definitions
go install github.com/asjard/asjard/cmd/protoc-gen-ts@latestDefine protobuf file
Add a new service
Add configuration file
Start the service
Test
Success
Failure
Last updated