Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchModuleTemplate ¶
FetchModuleTemplate returns the go template for fetch module.
func JSONCamelCase ¶
JSONCamelCase converts a snake_case identifier to a camelCase identifier, according to the protobuf JSON specification.
Copied from: google.golang.org/protobuf/internal/strs.
Types ¶
type TemplateData ¶
Data object injected into the templates.
type TypeScriptGRPCGatewayGenerator ¶
TypeScriptGRPCGatewayGenerator is the protobuf generator for typescript.
func New ¶
func New(reg *registry.Registry) (*TypeScriptGRPCGatewayGenerator, error)
New returns an initialised generator.
func (*TypeScriptGRPCGatewayGenerator) Generate ¶
func (t *TypeScriptGRPCGatewayGenerator) Generate( req *pluginpb.CodeGeneratorRequest) (*pluginpb.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.