Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator interface {
Generate(*google_protobuf.FileDescriptorProto) (*plugin.CodeGeneratorResponse_File, error)
}
Generator implementations generate a plugin response file from the passed file descriptor.
type GeneratorFunc ¶
type GeneratorFunc func(*google_protobuf.FileDescriptorProto) (*plugin.CodeGeneratorResponse_File, error)
GeneratorFunc type is an adapter to allow the use of ordinary functions as Generator implementations. If f is a function with the appropriate signature, GeneratorFunc(f) is a Generator that calls f.
func (GeneratorFunc) Generate ¶
func (f GeneratorFunc) Generate(desc *google_protobuf.FileDescriptorProto) (*plugin.CodeGeneratorResponse_File, error)
Generate calls f(desc).
Click to show internal directories.
Click to hide internal directories.