Documentation
¶
Overview ¶
Package genmodels contains all entities and must also have a struct which implements entitymodel.EntityFactory.
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
type EntityType ¶
type EntityType int
EntityType type of entity
const ( EntityTypeUndefined EntityType = iota EntityTypeContact EntityTypeContactAddress EntityTypeUser )
Click to show internal directories.
Click to hide internal directories.