Documentation ¶
Index ¶
- func AppendIfMissing(slice []string, v string) []string
- func EnhanceModelsWithInformation(backend structs.Config, enums []*structs.Enum, cfg *config.Config, ...) []*structs.Model
- func FindBoilerModel(models []*structs.BoilerModel, modelName string) *structs.BoilerModel
- func GetBoilerModels(dir string) ([]*structs.BoilerModel, []*structs.BoilerEnum)
- func IsFirstCharacterLowerCase(s string) bool
- func IsPlural(s string) bool
- func IsSingular(s string) bool
- func Plural(s string) string
- func Singular(s string) string
- func SliceContains(slice []string, v string) bool
- type BoilerCache
- type ModelCache
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendIfMissing ¶
func FindBoilerModel ¶
func FindBoilerModel(models []*structs.BoilerModel, modelName string) *structs.BoilerModel
func GetBoilerModels ¶
func GetBoilerModels(dir string) ([]*structs.BoilerModel, []*structs.BoilerEnum)
parseModelsAndFieldsFromBoiler since these are like User.ID, User.Organization and we want them grouped by modelName and their belonging fields.
func IsSingular ¶
func SliceContains ¶
Types ¶
type BoilerCache ¶
type BoilerCache struct { BoilerModels []*structs.BoilerModel BoilerEnums []*structs.BoilerEnum }
func InitializeBoilerCache ¶
func InitializeBoilerCache(backend structs.Config) *BoilerCache
type ModelCache ¶
type ModelCache struct { Models []*structs.Model Interfaces []*structs.Interface Enums []*structs.Enum Backend structs.Config Frontend structs.Config Output structs.Config Scalars []string }
func InitializeModelCache ¶
func InitializeModelCache(config *config.Config, boilerCache *BoilerCache, output structs.Config, backend structs.Config, frontend structs.Config) *ModelCache
Click to show internal directories.
Click to hide internal directories.