Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TxtFuncMap ¶
TxtFuncMap wraps sprig.TxtFuncMap and adds some proto generation specific ones.
Types ¶
type Generator ¶
type Generator interface {
// Generate generates the necessary files.
Generate(*Request) (*plugin.CodeGeneratorResponse, error)
}
Generator is code generator.
type Request ¶
type Request struct {
CodeGeneratorRequest *plugin.CodeGeneratorRequest
// GlobalFiles are generated once per namespace.
GlobalFiles []string
// ServiceFiles are generated once per service with the service name as a prefix.
ServiceFiles []string
}
Request contains all information necessary to start the code generation.
Click to show internal directories.
Click to hide internal directories.