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 ¶ added in v0.1.3
func ApplyTemplate(gf *protogen.GeneratedFile, f *protogen.File) (err error)
Types ¶
type Model ¶ added in v0.1.3
type Model struct { *protogen.Message Name string TableName string Fields []*ModelField }
type ModelField ¶ added in v0.1.3
type ModelField struct { *protogen.Field ModelType string ModelSingularType string Tag string Options *gorm.GormFieldOptions IsMessage bool IsRepeated bool IsTimestamp bool IsStructPb bool Comments string Ignore bool Name string ShouldGenerateBelongsToIdField bool }
func (*ModelField) Parse ¶ added in v0.1.3
func (f *ModelField) Parse() (err error)
type PluginOptions ¶ added in v0.1.3
type PreparedMessage ¶ added in v0.1.3
type PreparedMessage struct { *protogen.Message *Model PluginOptions Options *gorm.GormMessageOptions Ignore bool Engine string }
func (*PreparedMessage) Parse ¶ added in v0.1.3
func (pm *PreparedMessage) Parse() (err error)
Click to show internal directories.
Click to hide internal directories.