Documentation ¶
Index ¶
- Constants
- func KeySize(fieldNumber protoreflect.FieldNumber, wireType protowire.Type) int
- func ProtoWireType(k protoreflect.Kind) protowire.Type
- func RegisterFeature(name string, feat Feature)
- type Extensions
- type Feature
- type FeatureGenerator
- type GeneratedFile
- func (p *GeneratedFile) Alloc(vname string, message *protogen.Message)
- func (p *GeneratedFile) FieldGoType(field *protogen.Field) (goType string, pointer bool)
- func (p *GeneratedFile) HasUnknownFields() bool
- func (p *GeneratedFile) Ident(path, ident string) string
- func (p *GeneratedFile) IsLocalMessage(message *protogen.Message) bool
- func (p *GeneratedFile) IsNullable(field *protogen.Field) bool
- func (p *GeneratedFile) IsOneof(field *protogen.Field) bool
- func (p *GeneratedFile) OneofFieldNotPresent(oneof *protogen.Oneof) string
- func (p *GeneratedFile) OneofFieldType(oneof *protogen.Oneof, ix int) string
- func (p *GeneratedFile) OneofFieldTypeFromField(field *protogen.Field) string
- func (p *GeneratedFile) OneofStruct(oneof *protogen.Oneof) string
- func (p *GeneratedFile) OneofType(oneof *protogen.Oneof) string
- type Generator
Constants ¶
View Source
const ProtoPkg = "google.golang.org/protobuf/proto"
Variables ¶
This section is empty.
Functions ¶
func KeySize ¶
func KeySize(fieldNumber protoreflect.FieldNumber, wireType protowire.Type) int
func ProtoWireType ¶
func ProtoWireType(k protoreflect.Kind) protowire.Type
func RegisterFeature ¶
Types ¶
type Extensions ¶
type Feature ¶
type Feature func(gen *GeneratedFile) FeatureGenerator
type FeatureGenerator ¶
type GeneratedFile ¶
type GeneratedFile struct { *protogen.GeneratedFile Ext *Extensions LocalPackages map[string]bool }
func (*GeneratedFile) Alloc ¶
func (p *GeneratedFile) Alloc(vname string, message *protogen.Message)
func (*GeneratedFile) FieldGoType ¶
func (p *GeneratedFile) FieldGoType(field *protogen.Field) (goType string, pointer bool)
func (*GeneratedFile) HasUnknownFields ¶
func (p *GeneratedFile) HasUnknownFields() bool
func (*GeneratedFile) Ident ¶
func (p *GeneratedFile) Ident(path, ident string) string
func (*GeneratedFile) IsLocalMessage ¶
func (p *GeneratedFile) IsLocalMessage(message *protogen.Message) bool
func (*GeneratedFile) IsNullable ¶
func (p *GeneratedFile) IsNullable(field *protogen.Field) bool
func (*GeneratedFile) OneofFieldNotPresent ¶
func (p *GeneratedFile) OneofFieldNotPresent(oneof *protogen.Oneof) string
func (*GeneratedFile) OneofFieldType ¶
func (p *GeneratedFile) OneofFieldType(oneof *protogen.Oneof, ix int) string
func (*GeneratedFile) OneofFieldTypeFromField ¶
func (p *GeneratedFile) OneofFieldTypeFromField(field *protogen.Field) string
func (*GeneratedFile) OneofStruct ¶
func (p *GeneratedFile) OneofStruct(oneof *protogen.Oneof) string
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
func NewGenerator ¶
func (*Generator) GenerateFile ¶
Click to show internal directories.
Click to hide internal directories.