Versions in this module Expand all Collapse all v0 v0.0.1 Jun 20, 2020 Changes in this version + func GetUnderlyingType(typ reflect.Type) string + func HasStringPrimaryIDsInModels(models []*Model) bool + func IsBuiltin(typ reflect.Type) bool + func NameForDir(dir string) string + func New(output, backend, frontend Directory, opts ...Option) plugin.Plugin + func PkgAndType(name string) (string, string) + func SanitizePackageName(pkg string) string + type BoilerField struct + IsArray bool + IsForeignKey bool + IsRelation bool + IsRequired bool + Name string + PluralName string + Relationship BoilerModel + RelationshipName string + Type string + type BoilerModel struct + Fields []*BoilerField + HasOrganizationID bool + HasUserID bool + HasUserOrganizationID bool + Name string + PluralName string + func FindBoilerModel(models []*BoilerModel, modelName string) BoilerModel + func GetBoilerModels(dir string) []*BoilerModel + type BoilerType struct + Name string + Type string + type ColumnSetting struct + IDAvailable bool + Name string + RelationshipModelName string + type Convert struct + func (m *Convert) MutateConfig(originalCfg *config.Config) error + func (m *Convert) Name() string + type ConvertConfig struct + BoilerTypeAsText string + GraphTypeAsText string + IsCustom bool + ToBoiler string + ToGraphQL string + type Directory struct + Directory string + Package string + type Enum struct + Description string + Name string + Values []*EnumValue + type EnumValue struct + Description string + Name string + NameLower string + type Field struct + BoilerField BoilerField + ConvertConfig ConvertConfig + Description string + IsAnd bool + IsNumberID bool + IsOr bool + IsPlural bool + IsPrimaryID bool + IsPrimaryNumberID bool + IsRelation bool + IsRequired bool + Name string + OriginalType types.Type + PluralName string + Relationship *Model + Tag string + Type string + TypeWithoutPointer string + type Import struct + Alias string + ImportPath string + type Interface struct + Description string + Name string + type Model struct + BoilerModel BoilerModel + Description string + Fields []*Field + HasOrganizationID bool + HasStringPrimaryID bool + HasUserID bool + HasUserOrganizationID bool + Implements []string + IsCreateInput bool + IsFilter bool + IsInput bool + IsNormal bool + IsNormalInput bool + IsPayload bool + IsPreloadable bool + IsUpdateInput bool + IsWhere bool + Name string + PluralName string + PreloadArray []Preload + PrimaryKeyType string + PureFields []*ast.FieldDefinition + func GetModelsWithInformation(enums []*Enum, cfg *config.Config, boilerModels []*BoilerModel) []*Model + type Option interface + func PrimaryKeyCustom(typ interface{}) Option + func PrimaryKeyInt() Option + func PrimaryKeyString() Option + func PrimaryKeyUint() Option + type Preload struct + ColumnSetting ColumnSetting + Key string + type Rewriter struct + func NewRewriter(importPath string) (*Rewriter, error) + func (r *Rewriter) ExistingImports(filename string) []Import + func (r *Rewriter) GetMethodBody(structname string, methodname string) string + func (r *Rewriter) MarkStructCopied(name string) + func (r *Rewriter) RemainingSource(filename string) string + type Template struct + Backend Directory + Enums []*Enum + Frontend Directory + HasStringPrimaryIDs bool + Interfaces []*Interface + Models []*Model + PackageName string + PrimaryKey reflect.Type + Scalars []string