Documentation ¶
Index ¶
Constants ¶
View Source
const (
// EnableStylingCheckOption is the option name for EnableStylingCheck
EnableStylingCheckOption = "enable_styling_check"
)
Variables ¶
This section is empty.
Functions ¶
func GetFetchModuleTemplate ¶
GetFetchModuleTemplate returns the go template for fetch module
Types ¶
type TypeScriptGRPCGatewayGenerator ¶
type TypeScriptGRPCGatewayGenerator struct { Registry *registry.Registry // EnableStylingCheck enables both eslint and tsc check for the generated code // This option will only turn on in integration test to ensure the readability in // the generated code. EnableStylingCheck bool }
TypeScriptGRPCGatewayGenerator is the protobuf generator for typescript
func New ¶
func New(paramsMap map[string]string) (*TypeScriptGRPCGatewayGenerator, error)
New returns an initialised generator
func (*TypeScriptGRPCGatewayGenerator) Generate ¶
func (t *TypeScriptGRPCGatewayGenerator) Generate(req *plugin.CodeGeneratorRequest) (*plugin.CodeGeneratorResponse, error)
Generate take a code generator request and returns a response. it analyse request with registry and use the generated data to render ts files
Click to show internal directories.
Click to hide internal directories.