Versions in this module Expand all Collapse all v0 v0.1.3 Sep 13, 2021 Changes in this version + var ErrorEntityNotDeleted = errors.New("Entity not deleted") + var ErrorEntityNotFountBy = errors.New("Entity with given where condition not found") + type EntityDatastore interface + CreateEntity func(entity interface{}) error + DeleteEntityByID func(entity interface{}, id uint) error + GetAllEntities func(entitySlice interface{}) error + GetEntityByID func(entity interface{}, id uint) error + GetOneEntityBy func(entity interface{}, key string, val interface{}) error + SaveEntity func(entity interface{}) error + type GormEntityDatastoreImpl struct + func (ds *GormEntityDatastoreImpl) CreateEntity(entity interface{}) error + func (ds *GormEntityDatastoreImpl) DeleteEntityByID(entity interface{}, id uint) error + func (ds *GormEntityDatastoreImpl) GetAllEntities(entitySlice interface{}) error + func (ds *GormEntityDatastoreImpl) GetEntityByID(entity interface{}, id uint) error + func (ds *GormEntityDatastoreImpl) GetOneEntityBy(entity interface{}, key string, val interface{}) error + func (ds *GormEntityDatastoreImpl) LoadRelatedEntities(i interface{}) error + func (ds *GormEntityDatastoreImpl) SaveEntity(entity interface{}) error