Documentation
¶
Overview ¶
Package mock_domain is a generated GoMock package.
Index ¶
- type MockCache
- func (m *MockCache) Delete(ctx context.Context, key string) error
- func (m *MockCache) EXPECT() *MockCacheMockRecorder
- func (m *MockCache) Expire(ctx context.Context, key string, minitue time.Duration) error
- func (m *MockCache) Load(ctx context.Context, key string) (string, error)
- func (m *MockCache) Publish(ctx context.Context, channel, palyload string) error
- func (m *MockCache) Save(ctx context.Context, key, value string, minute time.Duration) error
- func (m *MockCache) Subscribe(ctx *gin.Context, channel string) (<-chan string, error)
- type MockCacheMockRecorder
- func (mr *MockCacheMockRecorder) Delete(ctx, key any) *gomock.Call
- func (mr *MockCacheMockRecorder) Expire(ctx, key, minitue any) *gomock.Call
- func (mr *MockCacheMockRecorder) Load(ctx, key any) *gomock.Call
- func (mr *MockCacheMockRecorder) Publish(ctx, channel, palyload any) *gomock.Call
- func (mr *MockCacheMockRecorder) Save(ctx, key, value, minute any) *gomock.Call
- func (mr *MockCacheMockRecorder) Subscribe(ctx, channel any) *gomock.Call
- type MockNotificationRepo
- func (m *MockNotificationRepo) CheckNotification(ctx context.Context, db repository.Execer, uid model.UserID, ...) error
- func (m *MockNotificationRepo) CreateNotification(ctx context.Context, db repository.Execer, ...) (customentities.Notification, error)
- func (m *MockNotificationRepo) EXPECT() *MockNotificationRepoMockRecorder
- func (m *MockNotificationRepo) GetByToUserByStartIdOrderByLatest(ctx context.Context, db repository.Queryer, uid model.UserID, ...) ([]*customentities.Notification, error)
- func (m *MockNotificationRepo) GetByToUserOrderByLatest(ctx context.Context, db repository.Queryer, uid model.UserID, size int, ...) ([]*customentities.Notification, error)
- func (m *MockNotificationRepo) GetNotificationByID(ctx context.Context, db repository.Queryer, uid model.UserID, ...) (customentities.Notification, error)
- func (m *MockNotificationRepo) GetUncheckedNotificationCount(ctx context.Context, db repository.Queryer, uid model.UserID) (int, error)
- type MockNotificationRepoMockRecorder
- func (mr *MockNotificationRepoMockRecorder) CheckNotification(ctx, db, uid, nid any) *gomock.Call
- func (mr *MockNotificationRepoMockRecorder) CreateNotification(ctx, db, notification any) *gomock.Call
- func (mr *MockNotificationRepoMockRecorder) GetByToUserByStartIdOrderByLatest(ctx, db, uid, startID, size any, columns ...any) *gomock.Call
- func (mr *MockNotificationRepoMockRecorder) GetByToUserOrderByLatest(ctx, db, uid, size any, columns ...any) *gomock.Call
- func (mr *MockNotificationRepoMockRecorder) GetNotificationByID(ctx, db, uid, nid any) *gomock.Call
- func (mr *MockNotificationRepoMockRecorder) GetUncheckedNotificationCount(ctx, db, uid any) *gomock.Call
- type MockPointRepo
- func (m *MockPointRepo) EXPECT() *MockPointRepoMockRecorder
- func (m *MockPointRepo) RegisterPointTransaction(ctx context.Context, db repository.Execer, fromUserID, toUserId model.UserID, ...) error
- func (m *MockPointRepo) UpdateAllSendablePoint(ctx context.Context, db repository.Execer, point int) error
- func (m *MockPointRepo) UpdateSendablePoint(ctx context.Context, db repository.Execer, fromUserID model.UserID, ...) error
- type MockPointRepoMockRecorder
- func (mr *MockPointRepoMockRecorder) RegisterPointTransaction(ctx, db, fromUserID, toUserId, sendPoint any) *gomock.Call
- func (mr *MockPointRepoMockRecorder) UpdateAllSendablePoint(ctx, db, point any) *gomock.Call
- func (mr *MockPointRepoMockRecorder) UpdateSendablePoint(ctx, db, fromUserID, sendPoint any) *gomock.Call
- type MockTokenGenerator
- type MockTokenGeneratorMockRecorder
- type MockTransactionRepo
- type MockTransactionRepoMockRecorder
- type MockUserRepo
- func (m *MockUserRepo) DeleteUserByID(ctx context.Context, db repository.Execer, ID model.UserID) (int64, error)
- func (m *MockUserRepo) EXPECT() *MockUserRepoMockRecorder
- func (m *MockUserRepo) FindUserByEmail(ctx context.Context, db repository.Queryer, e string, columns ...string) (entities.User, error)
- func (m *MockUserRepo) GetAll(ctx context.Context, db repository.Queryer, columns ...string) ([]*entities.User, error)
- func (m *MockUserRepo) GetUserByID(ctx context.Context, db repository.Queryer, ID model.UserID) (entities.User, error)
- func (m *MockUserRepo) RegisterUser(ctx context.Context, db repository.Execer, u *entities.User) error
- func (m *MockUserRepo) UpdateAccount(ctx context.Context, db repository.Execer, ...) error
- func (m *MockUserRepo) UpdateEmail(ctx context.Context, db repository.Execer, userID model.UserID, ...) error
- func (m *MockUserRepo) UpdatePassword(ctx context.Context, db repository.Execer, email, pass *string) error
- type MockUserRepoMockRecorder
- func (mr *MockUserRepoMockRecorder) DeleteUserByID(ctx, db, ID any) *gomock.Call
- func (mr *MockUserRepoMockRecorder) FindUserByEmail(ctx, db, e any, columns ...any) *gomock.Call
- func (mr *MockUserRepoMockRecorder) GetAll(ctx, db any, columns ...any) *gomock.Call
- func (mr *MockUserRepoMockRecorder) GetUserByID(ctx, db, ID any) *gomock.Call
- func (mr *MockUserRepoMockRecorder) RegisterUser(ctx, db, u any) *gomock.Call
- func (mr *MockUserRepoMockRecorder) UpdateAccount(ctx, db, email, familyName, familyNameKana, firstName, firstNameKana any) *gomock.Call
- func (mr *MockUserRepoMockRecorder) UpdateEmail(ctx, db, userID, newEmail any) *gomock.Call
- func (mr *MockUserRepoMockRecorder) UpdatePassword(ctx, db, email, pass any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCache ¶
type MockCache struct {
// contains filtered or unexported fields
}
MockCache is a mock of Cache interface.
func NewMockCache ¶
func NewMockCache(ctrl *gomock.Controller) *MockCache
NewMockCache creates a new mock instance.
func (*MockCache) EXPECT ¶
func (m *MockCache) EXPECT() *MockCacheMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockCacheMockRecorder ¶
type MockCacheMockRecorder struct {
// contains filtered or unexported fields
}
MockCacheMockRecorder is the mock recorder for MockCache.
func (*MockCacheMockRecorder) Delete ¶
func (mr *MockCacheMockRecorder) Delete(ctx, key any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockCacheMockRecorder) Expire ¶
func (mr *MockCacheMockRecorder) Expire(ctx, key, minitue any) *gomock.Call
Expire indicates an expected call of Expire.
func (*MockCacheMockRecorder) Load ¶
func (mr *MockCacheMockRecorder) Load(ctx, key any) *gomock.Call
Load indicates an expected call of Load.
func (*MockCacheMockRecorder) Publish ¶
func (mr *MockCacheMockRecorder) Publish(ctx, channel, palyload any) *gomock.Call
Publish indicates an expected call of Publish.
type MockNotificationRepo ¶
type MockNotificationRepo struct {
// contains filtered or unexported fields
}
MockNotificationRepo is a mock of NotificationRepo interface.
func NewMockNotificationRepo ¶
func NewMockNotificationRepo(ctrl *gomock.Controller) *MockNotificationRepo
NewMockNotificationRepo creates a new mock instance.
func (*MockNotificationRepo) CheckNotification ¶
func (m *MockNotificationRepo) CheckNotification(ctx context.Context, db repository.Execer, uid model.UserID, nid model.NotificationID) error
CheckNotification mocks base method.
func (*MockNotificationRepo) CreateNotification ¶
func (m *MockNotificationRepo) CreateNotification(ctx context.Context, db repository.Execer, notification customentities.Notification) (customentities.Notification, error)
CreateNotification mocks base method.
func (*MockNotificationRepo) EXPECT ¶
func (m *MockNotificationRepo) EXPECT() *MockNotificationRepoMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockNotificationRepo) GetByToUserByStartIdOrderByLatest ¶
func (m *MockNotificationRepo) GetByToUserByStartIdOrderByLatest(ctx context.Context, db repository.Queryer, uid model.UserID, startID model.NotificationID, size int, columns ...string) ([]*customentities.Notification, error)
GetByToUserByStartIdOrderByLatest mocks base method.
func (*MockNotificationRepo) GetByToUserOrderByLatest ¶
func (m *MockNotificationRepo) GetByToUserOrderByLatest(ctx context.Context, db repository.Queryer, uid model.UserID, size int, columns ...string) ([]*customentities.Notification, error)
GetByToUserOrderByLatest mocks base method.
func (*MockNotificationRepo) GetNotificationByID ¶
func (m *MockNotificationRepo) GetNotificationByID(ctx context.Context, db repository.Queryer, uid model.UserID, nid model.NotificationID) (customentities.Notification, error)
GetNotificationByID mocks base method.
func (*MockNotificationRepo) GetUncheckedNotificationCount ¶
func (m *MockNotificationRepo) GetUncheckedNotificationCount(ctx context.Context, db repository.Queryer, uid model.UserID) (int, error)
GetUncheckedNotificationCount mocks base method.
type MockNotificationRepoMockRecorder ¶
type MockNotificationRepoMockRecorder struct {
// contains filtered or unexported fields
}
MockNotificationRepoMockRecorder is the mock recorder for MockNotificationRepo.
func (*MockNotificationRepoMockRecorder) CheckNotification ¶
func (mr *MockNotificationRepoMockRecorder) CheckNotification(ctx, db, uid, nid any) *gomock.Call
CheckNotification indicates an expected call of CheckNotification.
func (*MockNotificationRepoMockRecorder) CreateNotification ¶
func (mr *MockNotificationRepoMockRecorder) CreateNotification(ctx, db, notification any) *gomock.Call
CreateNotification indicates an expected call of CreateNotification.
func (*MockNotificationRepoMockRecorder) GetByToUserByStartIdOrderByLatest ¶
func (mr *MockNotificationRepoMockRecorder) GetByToUserByStartIdOrderByLatest(ctx, db, uid, startID, size any, columns ...any) *gomock.Call
GetByToUserByStartIdOrderByLatest indicates an expected call of GetByToUserByStartIdOrderByLatest.
func (*MockNotificationRepoMockRecorder) GetByToUserOrderByLatest ¶
func (mr *MockNotificationRepoMockRecorder) GetByToUserOrderByLatest(ctx, db, uid, size any, columns ...any) *gomock.Call
GetByToUserOrderByLatest indicates an expected call of GetByToUserOrderByLatest.
func (*MockNotificationRepoMockRecorder) GetNotificationByID ¶
func (mr *MockNotificationRepoMockRecorder) GetNotificationByID(ctx, db, uid, nid any) *gomock.Call
GetNotificationByID indicates an expected call of GetNotificationByID.
func (*MockNotificationRepoMockRecorder) GetUncheckedNotificationCount ¶
func (mr *MockNotificationRepoMockRecorder) GetUncheckedNotificationCount(ctx, db, uid any) *gomock.Call
GetUncheckedNotificationCount indicates an expected call of GetUncheckedNotificationCount.
type MockPointRepo ¶
type MockPointRepo struct {
// contains filtered or unexported fields
}
MockPointRepo is a mock of PointRepo interface.
func NewMockPointRepo ¶
func NewMockPointRepo(ctrl *gomock.Controller) *MockPointRepo
NewMockPointRepo creates a new mock instance.
func (*MockPointRepo) EXPECT ¶
func (m *MockPointRepo) EXPECT() *MockPointRepoMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPointRepo) RegisterPointTransaction ¶
func (m *MockPointRepo) RegisterPointTransaction(ctx context.Context, db repository.Execer, fromUserID, toUserId model.UserID, sendPoint int) error
RegisterPointTransaction mocks base method.
func (*MockPointRepo) UpdateAllSendablePoint ¶
func (m *MockPointRepo) UpdateAllSendablePoint(ctx context.Context, db repository.Execer, point int) error
UpdateAllSendablePoint mocks base method.
func (*MockPointRepo) UpdateSendablePoint ¶
func (m *MockPointRepo) UpdateSendablePoint(ctx context.Context, db repository.Execer, fromUserID model.UserID, sendPoint int) error
UpdateSendablePoint mocks base method.
type MockPointRepoMockRecorder ¶
type MockPointRepoMockRecorder struct {
// contains filtered or unexported fields
}
MockPointRepoMockRecorder is the mock recorder for MockPointRepo.
func (*MockPointRepoMockRecorder) RegisterPointTransaction ¶
func (mr *MockPointRepoMockRecorder) RegisterPointTransaction(ctx, db, fromUserID, toUserId, sendPoint any) *gomock.Call
RegisterPointTransaction indicates an expected call of RegisterPointTransaction.
func (*MockPointRepoMockRecorder) UpdateAllSendablePoint ¶
func (mr *MockPointRepoMockRecorder) UpdateAllSendablePoint(ctx, db, point any) *gomock.Call
UpdateAllSendablePoint indicates an expected call of UpdateAllSendablePoint.
func (*MockPointRepoMockRecorder) UpdateSendablePoint ¶
func (mr *MockPointRepoMockRecorder) UpdateSendablePoint(ctx, db, fromUserID, sendPoint any) *gomock.Call
UpdateSendablePoint indicates an expected call of UpdateSendablePoint.
type MockTokenGenerator ¶
type MockTokenGenerator struct {
// contains filtered or unexported fields
}
MockTokenGenerator is a mock of TokenGenerator interface.
func NewMockTokenGenerator ¶
func NewMockTokenGenerator(ctrl *gomock.Controller) *MockTokenGenerator
NewMockTokenGenerator creates a new mock instance.
func (*MockTokenGenerator) EXPECT ¶
func (m *MockTokenGenerator) EXPECT() *MockTokenGeneratorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTokenGenerator) GenerateToken ¶
GenerateToken mocks base method.
type MockTokenGeneratorMockRecorder ¶
type MockTokenGeneratorMockRecorder struct {
// contains filtered or unexported fields
}
MockTokenGeneratorMockRecorder is the mock recorder for MockTokenGenerator.
func (*MockTokenGeneratorMockRecorder) GenerateToken ¶
func (mr *MockTokenGeneratorMockRecorder) GenerateToken(ctx, u any) *gomock.Call
GenerateToken indicates an expected call of GenerateToken.
type MockTransactionRepo ¶
type MockTransactionRepo struct {
// contains filtered or unexported fields
}
MockTransactionRepo is a mock of TransactionRepo interface.
func NewMockTransactionRepo ¶
func NewMockTransactionRepo(ctrl *gomock.Controller) *MockTransactionRepo
NewMockTransactionRepo creates a new mock instance.
func (*MockTransactionRepo) EXPECT ¶
func (m *MockTransactionRepo) EXPECT() *MockTransactionRepoMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTransactionRepo) GetAquistionPoint ¶
func (m *MockTransactionRepo) GetAquistionPoint(ctx context.Context, db repository.Queryer, userIDs []model.UserID) (map[model.UserID]int, error)
GetAquistionPoint mocks base method.
type MockTransactionRepoMockRecorder ¶
type MockTransactionRepoMockRecorder struct {
// contains filtered or unexported fields
}
MockTransactionRepoMockRecorder is the mock recorder for MockTransactionRepo.
func (*MockTransactionRepoMockRecorder) GetAquistionPoint ¶
func (mr *MockTransactionRepoMockRecorder) GetAquistionPoint(ctx, db, userIDs any) *gomock.Call
GetAquistionPoint indicates an expected call of GetAquistionPoint.
type MockUserRepo ¶
type MockUserRepo struct {
// contains filtered or unexported fields
}
MockUserRepo is a mock of UserRepo interface.
func NewMockUserRepo ¶
func NewMockUserRepo(ctrl *gomock.Controller) *MockUserRepo
NewMockUserRepo creates a new mock instance.
func (*MockUserRepo) DeleteUserByID ¶
func (m *MockUserRepo) DeleteUserByID(ctx context.Context, db repository.Execer, ID model.UserID) (int64, error)
DeleteUserByID mocks base method.
func (*MockUserRepo) EXPECT ¶
func (m *MockUserRepo) EXPECT() *MockUserRepoMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUserRepo) FindUserByEmail ¶
func (m *MockUserRepo) FindUserByEmail(ctx context.Context, db repository.Queryer, e string, columns ...string) (entities.User, error)
FindUserByEmail mocks base method.
func (*MockUserRepo) GetAll ¶
func (m *MockUserRepo) GetAll(ctx context.Context, db repository.Queryer, columns ...string) ([]*entities.User, error)
GetAll mocks base method.
func (*MockUserRepo) GetUserByID ¶
func (m *MockUserRepo) GetUserByID(ctx context.Context, db repository.Queryer, ID model.UserID) (entities.User, error)
GetUserByID mocks base method.
func (*MockUserRepo) RegisterUser ¶
func (m *MockUserRepo) RegisterUser(ctx context.Context, db repository.Execer, u *entities.User) error
RegisterUser mocks base method.
func (*MockUserRepo) UpdateAccount ¶
func (m *MockUserRepo) UpdateAccount(ctx context.Context, db repository.Execer, email, familyName, familyNameKana, firstName, firstNameKana *string) error
UpdateAccount mocks base method.
func (*MockUserRepo) UpdateEmail ¶
func (m *MockUserRepo) UpdateEmail(ctx context.Context, db repository.Execer, userID model.UserID, newEmail string) error
UpdateEmail mocks base method.
func (*MockUserRepo) UpdatePassword ¶
func (m *MockUserRepo) UpdatePassword(ctx context.Context, db repository.Execer, email, pass *string) error
UpdatePassword mocks base method.
type MockUserRepoMockRecorder ¶
type MockUserRepoMockRecorder struct {
// contains filtered or unexported fields
}
MockUserRepoMockRecorder is the mock recorder for MockUserRepo.
func (*MockUserRepoMockRecorder) DeleteUserByID ¶
func (mr *MockUserRepoMockRecorder) DeleteUserByID(ctx, db, ID any) *gomock.Call
DeleteUserByID indicates an expected call of DeleteUserByID.
func (*MockUserRepoMockRecorder) FindUserByEmail ¶
func (mr *MockUserRepoMockRecorder) FindUserByEmail(ctx, db, e any, columns ...any) *gomock.Call
FindUserByEmail indicates an expected call of FindUserByEmail.
func (*MockUserRepoMockRecorder) GetAll ¶
func (mr *MockUserRepoMockRecorder) GetAll(ctx, db any, columns ...any) *gomock.Call
GetAll indicates an expected call of GetAll.
func (*MockUserRepoMockRecorder) GetUserByID ¶
func (mr *MockUserRepoMockRecorder) GetUserByID(ctx, db, ID any) *gomock.Call
GetUserByID indicates an expected call of GetUserByID.
func (*MockUserRepoMockRecorder) RegisterUser ¶
func (mr *MockUserRepoMockRecorder) RegisterUser(ctx, db, u any) *gomock.Call
RegisterUser indicates an expected call of RegisterUser.
func (*MockUserRepoMockRecorder) UpdateAccount ¶
func (mr *MockUserRepoMockRecorder) UpdateAccount(ctx, db, email, familyName, familyNameKana, firstName, firstNameKana any) *gomock.Call
UpdateAccount indicates an expected call of UpdateAccount.
func (*MockUserRepoMockRecorder) UpdateEmail ¶
func (mr *MockUserRepoMockRecorder) UpdateEmail(ctx, db, userID, newEmail any) *gomock.Call
UpdateEmail indicates an expected call of UpdateEmail.
func (*MockUserRepoMockRecorder) UpdatePassword ¶
func (mr *MockUserRepoMockRecorder) UpdatePassword(ctx, db, email, pass any) *gomock.Call
UpdatePassword indicates an expected call of UpdatePassword.