plugin

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanImports

func CleanImports(pFileText *string) *string

CleanImports removes extraneous imports and lines from a proto response

Types

type QueryValidatePlugin added in v0.2.0

type QueryValidatePlugin struct {
	*generator.Generator
	// contains filtered or unexported fields
}

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL