|
|
- package grmi
-
- type Entity struct {
- TableName string
- BuildCursor func() interface{}
- Indicator interface{}
- FieldMapping map[string]Field
- }
-
- func NewEntity(tableName string, buildCursor func() interface{}, fieldMapping map[string]Field) Entity {
- return Entity{tableName, buildCursor, buildCursor(), fieldMapping}
- }
|