Documentation
¶
Index ¶
Constants ¶
View Source
const SUPPORTS_OPTIONAL_FIELDS = 1
I can't find where the constant is for this in protogen, so I'm putting it here.
Variables ¶
This section is empty.
Functions ¶
func ApplyTemplate ¶
func ApplyTemplate(gf *protogen.GeneratedFile, f *protogen.File) (err error)
Types ¶
type Model ¶
type ModelField ¶
type ModelField struct {
*protogen.Field
ModelType string
ModelSingularType string
Tag string
Options *gorm.GormFieldOptions
IsMessage bool
IsRepeated bool
IsTimestamp bool
IsStructPb bool
IsJsonb bool
IsPointer bool
IsOptional bool
Comments string
Ignore bool
Name string
ShouldGenerateBelongsToIdField bool
HasReplaceRelationships bool // any relationships except belongs to needs replace calls
TimeFormat string
QualifiedName string
}
func (*ModelField) Parse ¶
func (f *ModelField) Parse() (err error)
type PluginOptions ¶
type PreparedMessage ¶
type PreparedMessage struct {
*protogen.Message
*Model
PluginOptions
Options *gorm.GormMessageOptions
Ignore bool
Engine string
HasReplaceRelationships bool
}
func (*PreparedMessage) Parse ¶
func (pm *PreparedMessage) Parse() (err error)
Click to show internal directories.
Click to hide internal directories.