Documentation ¶
Overview ¶
Type EntityFactoryImpl must exist even before first generating models, because they are used in appenv.go and apienv.go
Type EntityType and function Val must exist even before first generating models, because they are used in entityservicesimpl.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EntityFactoryImpl ¶
type EntityFactoryImpl struct { }
EntityFactoryImpl create Entities by name
func (EntityFactoryImpl) DoWithAll ¶
func (ef EntityFactoryImpl) DoWithAll(entityList interface{}, entityFunc entitymodel.DoWithEntityFunc, params ...interface{})
DoWithAll
Method ranges over entities and calls entityFunc with each entity. You can serve parameters with each call to entityFunc. Attention! Maybe params should be pointers to change things outside entityFunc.
func (EntityFactoryImpl) Get ¶
func (ef EntityFactoryImpl) Get(entityName string) (interface{}, error)
Get return entity struct by name
func (EntityFactoryImpl) GetSlice ¶
func (ef EntityFactoryImpl) GetSlice(entityName string) (interface{}, error)
GetSlice return slice of entity struct by name
Click to show internal directories.
Click to hide internal directories.