Documentation ¶
Overview ¶
Package userAccount ユーザーアカウント
Package userAccount ユーザーアカウント ¶
Package userAccount is a generated GoMock package.
Package userAccount ユーザーアカウント ¶
Package userAccount is a generated GoMock package.
Index ¶
- type MockUserAccountMysqlRepository
- func (m_2 *MockUserAccountMysqlRepository) Create(ctx context.Context, tx *gorm.DB, m *UserAccount) (*UserAccount, error)
- func (m *MockUserAccountMysqlRepository) CreateList(ctx context.Context, tx *gorm.DB, ms UserAccounts) (UserAccounts, error)
- func (m_2 *MockUserAccountMysqlRepository) Delete(ctx context.Context, tx *gorm.DB, m *UserAccount) error
- func (m *MockUserAccountMysqlRepository) DeleteList(ctx context.Context, tx *gorm.DB, ms UserAccounts) error
- func (m *MockUserAccountMysqlRepository) EXPECT() *MockUserAccountMysqlRepositoryMockRecorder
- func (m *MockUserAccountMysqlRepository) Find(ctx context.Context, userId string) (*UserAccount, error)
- func (m *MockUserAccountMysqlRepository) FindList(ctx context.Context, userId string) (UserAccounts, error)
- func (m *MockUserAccountMysqlRepository) FindOrNil(ctx context.Context, userId string) (*UserAccount, error)
- func (m_2 *MockUserAccountMysqlRepository) Update(ctx context.Context, tx *gorm.DB, m *UserAccount) (*UserAccount, error)
- func (m *MockUserAccountMysqlRepository) UpdateList(ctx context.Context, tx *gorm.DB, ms UserAccounts) (UserAccounts, error)
- type MockUserAccountMysqlRepositoryMockRecorder
- func (mr *MockUserAccountMysqlRepositoryMockRecorder) Create(ctx, tx, m interface{}) *gomock.Call
- func (mr *MockUserAccountMysqlRepositoryMockRecorder) CreateList(ctx, tx, ms interface{}) *gomock.Call
- func (mr *MockUserAccountMysqlRepositoryMockRecorder) Delete(ctx, tx, m interface{}) *gomock.Call
- func (mr *MockUserAccountMysqlRepositoryMockRecorder) DeleteList(ctx, tx, ms interface{}) *gomock.Call
- func (mr *MockUserAccountMysqlRepositoryMockRecorder) Find(ctx, userId interface{}) *gomock.Call
- func (mr *MockUserAccountMysqlRepositoryMockRecorder) FindList(ctx, userId interface{}) *gomock.Call
- func (mr *MockUserAccountMysqlRepositoryMockRecorder) FindOrNil(ctx, userId interface{}) *gomock.Call
- func (mr *MockUserAccountMysqlRepositoryMockRecorder) Update(ctx, tx, m interface{}) *gomock.Call
- func (mr *MockUserAccountMysqlRepositoryMockRecorder) UpdateList(ctx, tx, ms interface{}) *gomock.Call
- type MockUserAccountRedisRepository
- func (m_2 *MockUserAccountRedisRepository) Delete(ctx context.Context, tx v9.Pipeliner, m *UserAccount) error
- func (m *MockUserAccountRedisRepository) EXPECT() *MockUserAccountRedisRepositoryMockRecorder
- func (m *MockUserAccountRedisRepository) Find(ctx context.Context, userId string) (*UserAccount, error)
- func (m *MockUserAccountRedisRepository) FindOrNil(ctx context.Context, userId string) (*UserAccount, error)
- func (m_2 *MockUserAccountRedisRepository) Set(ctx context.Context, tx v9.Pipeliner, m *UserAccount) (*UserAccount, error)
- type MockUserAccountRedisRepositoryMockRecorder
- func (mr *MockUserAccountRedisRepositoryMockRecorder) Delete(ctx, tx, m interface{}) *gomock.Call
- func (mr *MockUserAccountRedisRepositoryMockRecorder) Find(ctx, userId interface{}) *gomock.Call
- func (mr *MockUserAccountRedisRepositoryMockRecorder) FindOrNil(ctx, userId interface{}) *gomock.Call
- func (mr *MockUserAccountRedisRepositoryMockRecorder) Set(ctx, tx, m interface{}) *gomock.Call
- type UserAccount
- type UserAccountMysqlRepository
- type UserAccountRedisRepository
- type UserAccounts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockUserAccountMysqlRepository ¶
type MockUserAccountMysqlRepository struct {
// contains filtered or unexported fields
}
MockUserAccountMysqlRepository is a mock of UserAccountMysqlRepository interface.
func NewMockUserAccountMysqlRepository ¶
func NewMockUserAccountMysqlRepository(ctrl *gomock.Controller) *MockUserAccountMysqlRepository
NewMockUserAccountMysqlRepository creates a new mock instance.
func (*MockUserAccountMysqlRepository) Create ¶
func (m_2 *MockUserAccountMysqlRepository) Create(ctx context.Context, tx *gorm.DB, m *UserAccount) (*UserAccount, error)
Create mocks base method.
func (*MockUserAccountMysqlRepository) CreateList ¶
func (m *MockUserAccountMysqlRepository) CreateList(ctx context.Context, tx *gorm.DB, ms UserAccounts) (UserAccounts, error)
CreateList mocks base method.
func (*MockUserAccountMysqlRepository) Delete ¶
func (m_2 *MockUserAccountMysqlRepository) Delete(ctx context.Context, tx *gorm.DB, m *UserAccount) error
Delete mocks base method.
func (*MockUserAccountMysqlRepository) DeleteList ¶
func (m *MockUserAccountMysqlRepository) DeleteList(ctx context.Context, tx *gorm.DB, ms UserAccounts) error
DeleteList mocks base method.
func (*MockUserAccountMysqlRepository) EXPECT ¶
func (m *MockUserAccountMysqlRepository) EXPECT() *MockUserAccountMysqlRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUserAccountMysqlRepository) Find ¶
func (m *MockUserAccountMysqlRepository) Find(ctx context.Context, userId string) (*UserAccount, error)
Find mocks base method.
func (*MockUserAccountMysqlRepository) FindList ¶
func (m *MockUserAccountMysqlRepository) FindList(ctx context.Context, userId string) (UserAccounts, error)
FindList mocks base method.
func (*MockUserAccountMysqlRepository) FindOrNil ¶
func (m *MockUserAccountMysqlRepository) FindOrNil(ctx context.Context, userId string) (*UserAccount, error)
FindOrNil mocks base method.
func (*MockUserAccountMysqlRepository) Update ¶
func (m_2 *MockUserAccountMysqlRepository) Update(ctx context.Context, tx *gorm.DB, m *UserAccount) (*UserAccount, error)
Update mocks base method.
func (*MockUserAccountMysqlRepository) UpdateList ¶
func (m *MockUserAccountMysqlRepository) UpdateList(ctx context.Context, tx *gorm.DB, ms UserAccounts) (UserAccounts, error)
UpdateList mocks base method.
type MockUserAccountMysqlRepositoryMockRecorder ¶
type MockUserAccountMysqlRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockUserAccountMysqlRepositoryMockRecorder is the mock recorder for MockUserAccountMysqlRepository.
func (*MockUserAccountMysqlRepositoryMockRecorder) Create ¶
func (mr *MockUserAccountMysqlRepositoryMockRecorder) Create(ctx, tx, m interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockUserAccountMysqlRepositoryMockRecorder) CreateList ¶
func (mr *MockUserAccountMysqlRepositoryMockRecorder) CreateList(ctx, tx, ms interface{}) *gomock.Call
CreateList indicates an expected call of CreateList.
func (*MockUserAccountMysqlRepositoryMockRecorder) Delete ¶
func (mr *MockUserAccountMysqlRepositoryMockRecorder) Delete(ctx, tx, m interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockUserAccountMysqlRepositoryMockRecorder) DeleteList ¶
func (mr *MockUserAccountMysqlRepositoryMockRecorder) DeleteList(ctx, tx, ms interface{}) *gomock.Call
DeleteList indicates an expected call of DeleteList.
func (*MockUserAccountMysqlRepositoryMockRecorder) Find ¶
func (mr *MockUserAccountMysqlRepositoryMockRecorder) Find(ctx, userId interface{}) *gomock.Call
Find indicates an expected call of Find.
func (*MockUserAccountMysqlRepositoryMockRecorder) FindList ¶
func (mr *MockUserAccountMysqlRepositoryMockRecorder) FindList(ctx, userId interface{}) *gomock.Call
FindList indicates an expected call of FindList.
func (*MockUserAccountMysqlRepositoryMockRecorder) FindOrNil ¶
func (mr *MockUserAccountMysqlRepositoryMockRecorder) FindOrNil(ctx, userId interface{}) *gomock.Call
FindOrNil indicates an expected call of FindOrNil.
func (*MockUserAccountMysqlRepositoryMockRecorder) Update ¶
func (mr *MockUserAccountMysqlRepositoryMockRecorder) Update(ctx, tx, m interface{}) *gomock.Call
Update indicates an expected call of Update.
func (*MockUserAccountMysqlRepositoryMockRecorder) UpdateList ¶
func (mr *MockUserAccountMysqlRepositoryMockRecorder) UpdateList(ctx, tx, ms interface{}) *gomock.Call
UpdateList indicates an expected call of UpdateList.
type MockUserAccountRedisRepository ¶
type MockUserAccountRedisRepository struct {
// contains filtered or unexported fields
}
MockUserAccountRedisRepository is a mock of UserAccountRedisRepository interface.
func NewMockUserAccountRedisRepository ¶
func NewMockUserAccountRedisRepository(ctrl *gomock.Controller) *MockUserAccountRedisRepository
NewMockUserAccountRedisRepository creates a new mock instance.
func (*MockUserAccountRedisRepository) Delete ¶
func (m_2 *MockUserAccountRedisRepository) Delete(ctx context.Context, tx v9.Pipeliner, m *UserAccount) error
Delete mocks base method.
func (*MockUserAccountRedisRepository) EXPECT ¶
func (m *MockUserAccountRedisRepository) EXPECT() *MockUserAccountRedisRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUserAccountRedisRepository) Find ¶
func (m *MockUserAccountRedisRepository) Find(ctx context.Context, userId string) (*UserAccount, error)
Find mocks base method.
func (*MockUserAccountRedisRepository) FindOrNil ¶
func (m *MockUserAccountRedisRepository) FindOrNil(ctx context.Context, userId string) (*UserAccount, error)
FindOrNil mocks base method.
func (*MockUserAccountRedisRepository) Set ¶
func (m_2 *MockUserAccountRedisRepository) Set(ctx context.Context, tx v9.Pipeliner, m *UserAccount) (*UserAccount, error)
Set mocks base method.
type MockUserAccountRedisRepositoryMockRecorder ¶
type MockUserAccountRedisRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockUserAccountRedisRepositoryMockRecorder is the mock recorder for MockUserAccountRedisRepository.
func (*MockUserAccountRedisRepositoryMockRecorder) Delete ¶
func (mr *MockUserAccountRedisRepositoryMockRecorder) Delete(ctx, tx, m interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockUserAccountRedisRepositoryMockRecorder) Find ¶
func (mr *MockUserAccountRedisRepositoryMockRecorder) Find(ctx, userId interface{}) *gomock.Call
Find indicates an expected call of Find.
func (*MockUserAccountRedisRepositoryMockRecorder) FindOrNil ¶
func (mr *MockUserAccountRedisRepositoryMockRecorder) FindOrNil(ctx, userId interface{}) *gomock.Call
FindOrNil indicates an expected call of FindOrNil.
func (*MockUserAccountRedisRepositoryMockRecorder) Set ¶
func (mr *MockUserAccountRedisRepositoryMockRecorder) Set(ctx, tx, m interface{}) *gomock.Call
Set indicates an expected call of Set.
type UserAccount ¶
type UserAccount struct { UserId string Name string Password string LoginAt time.Time LogoutAt time.Time }
func NewUserAccount ¶
func NewUserAccount() *UserAccount
func SetUserAccount ¶
type UserAccountMysqlRepository ¶
type UserAccountMysqlRepository interface { Find(ctx context.Context, userId string) (*UserAccount, error) FindOrNil(ctx context.Context, userId string) (*UserAccount, error) FindList(ctx context.Context, userId string) (UserAccounts, error) Create(ctx context.Context, tx *gorm.DB, m *UserAccount) (*UserAccount, error) CreateList(ctx context.Context, tx *gorm.DB, ms UserAccounts) (UserAccounts, error) Update(ctx context.Context, tx *gorm.DB, m *UserAccount) (*UserAccount, error) UpdateList(ctx context.Context, tx *gorm.DB, ms UserAccounts) (UserAccounts, error) Delete(ctx context.Context, tx *gorm.DB, m *UserAccount) error DeleteList(ctx context.Context, tx *gorm.DB, ms UserAccounts) error }
type UserAccountRedisRepository ¶
type UserAccountRedisRepository interface { Find(ctx context.Context, userId string) (*UserAccount, error) FindOrNil(ctx context.Context, userId string) (*UserAccount, error) Set(ctx context.Context, tx redis.Pipeliner, m *UserAccount) (*UserAccount, error) Delete(ctx context.Context, tx redis.Pipeliner, m *UserAccount) error }
type UserAccounts ¶
type UserAccounts []*UserAccount
func NewUserAccounts ¶
func NewUserAccounts() UserAccounts