| 35 | } |
| 36 | |
| 37 | type postRepository struct { |
| 38 | dao dao.PostDAO |
| 39 | l *zap.Logger |
| 40 | cache cache.PostCache |
| 41 | asynqClient *asynq.Client |
| 42 | } |
| 43 | |
| 44 | func NewPostRepository(dao dao.PostDAO, l *zap.Logger, cache cache.PostCache, asynqClient *asynq.Client) PostRepository { |
| 45 | return &postRepository{ |
nothing calls this directly
no outgoing calls
no test coverage detected