Documentation ¶
Index ¶
- func CompileProtoFile(protoFileName string) error
- func GenerateClient(builder golang.ModuleBuilder, service *gocode.ServiceInterface, ...) error
- func GenerateGRPCProto(builder golang.ModuleBuilder, service *gocode.ServiceInterface, ...) error
- func GenerateServerHandler(builder golang.ModuleBuilder, service *gocode.ServiceInterface, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompileProtoFile ¶
Runs protoc on the specified protoFileName
func GenerateClient ¶
func GenerateClient(builder golang.ModuleBuilder, service *gocode.ServiceInterface, outputPackage string) error
Generates a gRPC client for the specified service
func GenerateGRPCProto ¶
func GenerateGRPCProto(builder golang.ModuleBuilder, service *gocode.ServiceInterface, outputPackage string) error
Generates the GRPC .proto file for the provided service interface, then compiles it using `protoc`.
See the plugin README for the required GRPC and protocol buffers package dependencies.
func GenerateServerHandler ¶
func GenerateServerHandler(builder golang.ModuleBuilder, service *gocode.ServiceInterface, outputPackage string) error
This function is used by the GRPC plugin to generate the server-side GRPC service.
It is assumed that outputPackage is the same as the one where the .proto is generated to
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.