Documentation ¶ Index ¶ func CollectRelations(relationships map[string][]*Relation) ([]string, error) func Generate(metadataDir string, outputFile string, includeProperties bool) error type Entity func ParseMetadata(filePath string) Entity type Field type Relation type Target Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func CollectRelations ¶ func CollectRelations(relationships map[string][]*Relation) ([]string, error) func Generate ¶ func Generate(metadataDir string, outputFile string, includeProperties bool) error Types ¶ type Entity ¶ type Entity struct { Name string Description string Fields []Field Relations []Relation } func ParseMetadata ¶ func ParseMetadata(filePath string) Entity type Field ¶ type Field struct { Id string Name string Type string Mandatory bool Description string } type Relation ¶ type Relation struct { Type string Id string Name string Target Target FromTable string // Used to track which table the relation was found in // contains filtered or unexported fields } type Target ¶ type Target struct { Table string Fields map[string]interface{} } Source Files ¶ View all Source files generator.go types.go Click to show internal directories. Click to hide internal directories.