Why
entity パッケージに Repository が存在している。
|
type GitHubRepository interface { |
|
GetContributions(ctx context.Context, userName string, from time.Time, to time.Time) ([]int, error) |
|
} |
|
|
|
type SlackRepository interface { |
|
GetWorkingCronChannel(ctx context.Context) (string, error) |
|
} |
What
一般的に、 Repository はアダプターとして扱われるから、 adapter/repository の一つで良いと思う。意図的に entity パッケージに Repository を定義してる理由とかある?