| 32 | } |
| 33 | |
| 34 | type userExampleDao struct { |
| 35 | db *gorm.DB |
| 36 | cache cache.UserExampleCache // if nil, the cache is not used. |
| 37 | sfg *singleflight.Group // if cache is nil, the sfg is not used. |
| 38 | } |
| 39 | |
| 40 | // NewUserExampleDao creating the dao interface |
| 41 | func NewUserExampleDao(db *gorm.DB, xCache cache.UserExampleCache) UserExampleDao { |
nothing calls this directly
no outgoing calls
no test coverage detected