Documentation ¶
Index ¶
- func Constructor(file *protogen.File, g *protogen.GeneratedFile, ...) string
- func CqlKind(d protoreflect.FieldDescriptor) string
- func DescName(file *protogen.File, g *protogen.GeneratedFile, ...) string
- func DescParts(file *protogen.File, g *protogen.GeneratedFile, ...) (string, string)
- func GoKind(file *protogen.File, g *protogen.GeneratedFile, d protoreflect.FieldDescriptor) string
- func Name(file *protogen.File, g *protogen.GeneratedFile, ...) string
- func PackageName(file *protogen.File, g *protogen.GeneratedFile, ...) string
- func ZeroValue(f protoreflect.FieldDescriptor) string
- type TemplateArg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Constructor ¶
func Constructor(file *protogen.File, g *protogen.GeneratedFile, desc protoreflect.MessageDescriptor) string
func CqlKind ¶ added in v0.3.2
func CqlKind(d protoreflect.FieldDescriptor) string
func DescName ¶
func DescName(file *protogen.File, g *protogen.GeneratedFile, desc protoreflect.MessageDescriptor) string
DescName return the fullname of the descriptor. i.e. package.identifier
func DescParts ¶ added in v0.10.3
func DescParts(file *protogen.File, g *protogen.GeneratedFile, desc protoreflect.MessageDescriptor) (string, string)
DescParts returns the package and identifier name
func GoKind ¶ added in v0.3.2
func GoKind(file *protogen.File, g *protogen.GeneratedFile, d protoreflect.FieldDescriptor) string
func Name ¶
func Name(file *protogen.File, g *protogen.GeneratedFile, desc protoreflect.MessageDescriptor) string
func PackageName ¶
func PackageName(file *protogen.File, g *protogen.GeneratedFile, desc protoreflect.MessageDescriptor) string
func ZeroValue ¶
func ZeroValue(f protoreflect.FieldDescriptor) string
ZeroValue returns the equal zero value based on the input type
Types ¶
type TemplateArg ¶ added in v0.10.6
type TemplateArg struct { Name string Pkg string Type string C uint32 Fields []struct { Kind string Pkg string Type string Name string ZeroValue string } }
func (*TemplateArg) AddField ¶ added in v0.10.6
func (arg *TemplateArg) AddField(f *protogen.File, gf *protogen.GeneratedFile, fd protoreflect.FieldDescriptor)
Click to show internal directories.
Click to hide internal directories.