package codegenerator
import "github.com/grpc-ecosystem/grpc-gateway/v2/internal/codegenerator"
Package codegenerator contains reusable functions used by the code generators.
Index ¶
- func ParseRequest(r io.Reader) (*pluginpb.CodeGeneratorRequest, error)
- func SetSupportedFeaturesOnCodeGeneratorResponse(resp *pluginpb.CodeGeneratorResponse)
- func SetSupportedFeaturesOnPluginGen(gen *protogen.Plugin)
Functions ¶
func ParseRequest ¶
func ParseRequest(r io.Reader) (*pluginpb.CodeGeneratorRequest, error)
ParseRequest parses a code generator request from a proto Message.
func SetSupportedFeaturesOnCodeGeneratorResponse ¶
func SetSupportedFeaturesOnCodeGeneratorResponse(resp *pluginpb.CodeGeneratorResponse)
SetSupportedFeaturesOnCodeGeneratorResponse sets supported proto3 features on pluginpb.CodeGeneratorResponse.
func SetSupportedFeaturesOnPluginGen ¶
SetSupportedFeaturesOnPluginGen sets supported proto3 features on protogen.Plugin.
Source Files ¶
doc.go parse_req.go supported_features.go
- Version
- v2.26.1 (latest)
- Published
- Feb 7, 2025
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 6 days ago –
Tools for package owners.