Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Person ¶
type Person struct { ID int64 `db:"kokoha"` Name string `db:"tekitode"` // sql.NullString はインフラに結合するので使わない Email string `db:"yoiyo"` }
Person ...
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider ...
func (*Provider) GetPersonByID ¶
GetPersonByID ...
type Repository ¶
type Repository interface { RegisterPerson(context.Context, Person) (Person, error) GetPersonByID(context.Context, int64) (Person, error) }
Repository ...
type RepositoryImpl ¶
type RepositoryImpl struct {
// contains filtered or unexported fields
}
RepositoryImpl ...
func (*RepositoryImpl) GetPersonByID ¶
GetPersonByID ...
func (*RepositoryImpl) RegisterPerson ¶
RegisterPerson ...
type RepositoryImplMock ¶
type RepositoryImplMock struct {
// contains filtered or unexported fields
}
RepositoryImplMock ...
func NewRepositoryImplMock ¶
func NewRepositoryImplMock(db *MockDB) *RepositoryImplMock
NewRepositoryImplMock ...
func (*RepositoryImplMock) GetPersonByID ¶
GetPersonByID ...
func (*RepositoryImplMock) RegisterPerson ¶
RegisterPerson ...
Click to show internal directories.
Click to hide internal directories.