diff --git a/grmi/Entity.go b/grmi/Entity.go index 868269f..b87f7c2 100644 --- a/grmi/Entity.go +++ b/grmi/Entity.go @@ -5,8 +5,9 @@ type Entity struct { BuildCursor func() interface{} Indicator interface{} FieldMapping map[string]Field + PresetKeys []string } -func NewEntity(tableName string, buildCursor func() interface{}, fieldMapping map[string]Field) Entity { - return Entity{tableName, buildCursor, buildCursor(), fieldMapping} +func NewEntity(tableName string, buildCursor func() interface{}, fieldMapping map[string]Field, presetKeys []string) Entity { + return Entity{tableName, buildCursor, buildCursor(), fieldMapping, presetKeys} }