interactor

package
v0.0.0-...-b2f019a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2020 License: MIT Imports: 2 Imported by: 0

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]

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL