Documentation ¶
Index ¶
- func CleanImports(pFileText *string) *string
- type QueryValidatePlugin
- func (p *QueryValidatePlugin) CleanFiles(response *plugin.CodeGeneratorResponse)
- func (p *QueryValidatePlugin) Generate(file *generator.FileDescriptor)
- func (p *QueryValidatePlugin) GenerateImports(file *generator.FileDescriptor)
- func (p *QueryValidatePlugin) Init(g *generator.Generator)
- func (p *QueryValidatePlugin) Name() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanImports ¶
CleanImports removes extraneous imports and lines from a proto response
Types ¶
type QueryValidatePlugin ¶ added in v0.2.0
QueryValidatePlugin implements the plugin interface and creates validations for collection operation parameters code from .protos
func (*QueryValidatePlugin) CleanFiles ¶ added in v0.2.0
func (p *QueryValidatePlugin) CleanFiles(response *plugin.CodeGeneratorResponse)
func (*QueryValidatePlugin) Generate ¶ added in v0.2.0
func (p *QueryValidatePlugin) Generate(file *generator.FileDescriptor)
Generate produces the code generated by the plugin for this file, except for the imports, by calling the generator's methods P, In, and Out.
func (*QueryValidatePlugin) GenerateImports ¶ added in v0.2.0
func (p *QueryValidatePlugin) GenerateImports(file *generator.FileDescriptor)
GenerateImports writes out required imports for the generated files
func (*QueryValidatePlugin) Init ¶ added in v0.2.0
func (p *QueryValidatePlugin) Init(g *generator.Generator)
Init is called once after data structures are built but before code generation begins.
func (*QueryValidatePlugin) Name ¶ added in v0.2.0
func (p *QueryValidatePlugin) Name() string
Name identifies the plugin
Click to show internal directories.
Click to hide internal directories.