Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Generate ¶
func Generate(request *plugin.CodeGeneratorRequest, config Config) (*plugin.CodeGeneratorResponse, error)
New returns a new generator for the given template.
Types ¶
type Config ¶
type Config struct { TemplateRoot string URLRoot string Operations []OperationConfig }
Config for the plugin
type OperationConfig ¶
type OperationConfig struct { // Template is the path of the template file to use for generating the // target. Template string // Target is the target proto file for generation. It must match one of the // input proto files, or else the template will not be executed. Target string // Output is the output file to write the executed template contents to. Output string }
OperationConfig for rendering an html template from proto source
Click to show internal directories.
Click to hide internal directories.