Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitPathMap ¶
func InitPathMap(file *descriptor.FileDescriptorProto)
func InitPathMaps ¶
func InitPathMaps(files []*descriptor.FileDescriptorProto)
Types ¶
type Ast ¶
type Ast struct {
BuildDate time.Time `json:"build-date"`
BuildHostname string `json:"build-hostname"`
BuildUser string `json:"build-user"`
GoPWD string `json:"go-pwd,omitempty"`
PWD string `json:"pwd"`
Debug bool `json:"debug"`
DestinationDir string `json:"destination-dir"`
File *descriptor.FileDescriptorProto `json:"file"`
RawFilename string `json:"raw-filename"`
Filename string `json:"filename"`
TemplateDir string `json:"template-dir"`
Service *descriptor.ServiceDescriptorProto `json:"service"`
Enum []*descriptor.EnumDescriptorProto `json:"enum"`
}
type GenericTemplateBasedEncoder ¶
type GenericTemplateBasedEncoder struct {
// contains filtered or unexported fields
}
func NewGenericServiceTemplateBasedEncoder ¶
func NewGenericServiceTemplateBasedEncoder(templateDir string, service *descriptor.ServiceDescriptorProto, file *descriptor.FileDescriptorProto, debug bool, destinationDir string) (e *GenericTemplateBasedEncoder)
func NewGenericTemplateBasedEncoder ¶
func NewGenericTemplateBasedEncoder(templateDir string, file *descriptor.FileDescriptorProto, debug bool, destinationDir string) (e *GenericTemplateBasedEncoder)
func (*GenericTemplateBasedEncoder) Files ¶
func (e *GenericTemplateBasedEncoder) Files() []*plugin_go.CodeGeneratorResponse_File
Click to show internal directories.
Click to hide internal directories.