Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserInteractor ¶
type UserInteractor interface { Save(data *model.User) (bool, error) GetAll() ([]*model.User, error) Get(id int) (*model.User, error) }
UserInteractor インターフェイスはNewUserInteractorで使用する
func NewUserInteractor ¶
func NewUserInteractor(ur repository.UserRepository) UserInteractor
NewUserInteractor userの実処理。実処理と登録・参照処理としてusecase/repositoryを呼び出す [この関数をwireでDI]
Click to show internal directories.
Click to hide internal directories.