Documentation ¶
Index ¶
- func NameForDir(dir string) string
- func New(directory, backendModelsPath, frontendModelsPath string) plugin.Plugin
- func PkgAndType(name string) (string, string)
- func SanitizePackageName(pkg string) string
- type ColumnSetting
- type ConvertConfig
- type Enum
- type EnumValue
- type Field
- type Interface
- type Model
- type ModelBuild
- type Plugin
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NameForDir ¶
NameForDir manually looks for package stanzas in files located in the given directory. This can be much faster than having to consult go list, because we already know exactly where to look.
func PkgAndType ¶
take a string in the form github.com/package/blah.Type and split it into package and type
func SanitizePackageName ¶
Types ¶
type ColumnSetting ¶
type ConvertConfig ¶
type Field ¶
type Field struct { Name string PluralName string Type string IsID bool IsPrimaryID bool IsRequired bool IsPlural bool ConvertConfig ConvertConfig // relation stuff IsRelation bool // boiler relation stuff is inside this field BoilerField boiler.BoilerField // graphql relation ship can be found here Relationship *Model IsOr bool IsAnd bool // Some stuff Description string OriginalType types.Type Tag string }
type Model ¶
type Model struct { Name string PluralName string BoilerModel boiler.BoilerModel Fields []*Field IsNormal bool IsInput bool IsCreateInput bool IsUpdateInput bool IsNormalInput bool IsPayload bool IsWhere bool IsFilter bool PreloadMap map[string]ColumnSetting HasOrganizationID bool HasUserOrganizationID bool HasUserID bool // other stuff Description string PureFields []*ast.FieldDefinition Implements []string }
func GetModelsWithInformation ¶
func GetModelsWithInformation(cfg *config.Config, boilerModels []*boiler.BoilerModel) []*Model
type ModelBuild ¶
Click to show internal directories.
Click to hide internal directories.