Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Entityenhancer []*Option `yaml:"entityenhancer,flow"`
}
func (*Config) GetEntityOption ¶
type EntityFieldSpec ¶
type EntitySpec ¶ added in v0.2.0
type EntitySpec struct { Name string TokenFset *token.FileSet // original token fset TypeSpec *ast.StructType FieldSpecs []EntityFieldSpec PkgHostDir string // package full path in host in which the entity type is defined Imports []gogen.ImportSpec // imports from the file in which the entity type is defined }
func (*EntitySpec) FlattenFieldSpecs ¶ added in v0.2.0
func (es *EntitySpec) FlattenFieldSpecs( modSpec *ModuleSpec, pkgDir string, tbl string, fieldSpecs map[string][]EntityFieldSpec, importSpecs map[string][]gogen.ImportSpec, ) (tables []string)
type ModuleSpec ¶ added in v0.2.2
///////////////////////////////////////////////////////////////////////////
func (*ModuleSpec) Init ¶ added in v0.2.2
func (m *ModuleSpec) Init() error
func (*ModuleSpec) ResolveModulePath ¶ added in v0.2.2
func (m *ModuleSpec) ResolveModulePath(modulePath string) (string, error)
Click to show internal directories.
Click to hide internal directories.