Skip to content

Repository が2つの箇所に存在している #4

Description

@culumn

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 を定義してる理由とかある?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions