Documentation ¶
Overview ¶
Package mock_user is a generated GoMock package.
Package mock_user is a generated GoMock package.
Package mock_user is a generated GoMock package.
Index ¶
- type MockRepository
- func (m *MockRepository) Authentication(ctx context.Context) (string, error)
- func (m *MockRepository) Count(ctx context.Context, q *database.ListQuery) (int, error)
- func (m *MockRepository) CountRelationship(ctx context.Context, q *database.ListQuery) (int, error)
- func (m *MockRepository) Create(ctx context.Context, u *user.User) error
- func (m *MockRepository) CreateRelationship(ctx context.Context, r *user.Relationship) error
- func (m *MockRepository) CreateWithOAuth(ctx context.Context, u *user.User) error
- func (m *MockRepository) Delete(ctx context.Context, userID string) error
- func (m *MockRepository) DeleteRelationship(ctx context.Context, relationshipID int) error
- func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
- func (m *MockRepository) Get(ctx context.Context, userID string) (*user.User, error)
- func (m *MockRepository) GetAdmin(ctx context.Context, userID string) (*user.User, error)
- func (m *MockRepository) GetRelationship(ctx context.Context, followID, followerID string) (*user.Relationship, error)
- func (m *MockRepository) GetRelationshipIDByUserID(ctx context.Context, followID, followerID string) (int, error)
- func (m *MockRepository) GetUserIDByEmail(ctx context.Context, email string) (string, error)
- func (m *MockRepository) List(ctx context.Context, q *database.ListQuery) (user.Users, error)
- func (m *MockRepository) ListFollow(ctx context.Context, q *database.ListQuery) (user.Follows, error)
- func (m *MockRepository) ListFollowID(ctx context.Context, userID string, userIDs ...string) ([]string, error)
- func (m *MockRepository) ListFollower(ctx context.Context, q *database.ListQuery) (user.Followers, error)
- func (m *MockRepository) ListFollowerID(ctx context.Context, userID string, userIDs ...string) ([]string, error)
- func (m *MockRepository) ListInstanceID(ctx context.Context, q *database.ListQuery) ([]string, error)
- func (m *MockRepository) MultiGet(ctx context.Context, userIDs []string) (user.Users, error)
- func (m *MockRepository) Update(ctx context.Context, u *user.User) error
- func (m *MockRepository) UpdatePassword(ctx context.Context, userID, password string) error
- type MockRepositoryMockRecorder
- func (mr *MockRepositoryMockRecorder) Authentication(ctx interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Count(ctx, q interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) CountRelationship(ctx, q interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Create(ctx, u interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) CreateRelationship(ctx, r interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) CreateWithOAuth(ctx, u interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Delete(ctx, userID interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) DeleteRelationship(ctx, relationshipID interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Get(ctx, userID interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) GetAdmin(ctx, userID interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) GetRelationship(ctx, followID, followerID interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) GetRelationshipIDByUserID(ctx, followID, followerID interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) GetUserIDByEmail(ctx, email interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) List(ctx, q interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) ListFollow(ctx, q interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) ListFollowID(ctx, userID interface{}, userIDs ...interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) ListFollower(ctx, q interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) ListFollowerID(ctx, userID interface{}, userIDs ...interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) ListInstanceID(ctx, q interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) MultiGet(ctx, userIDs interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Update(ctx, u interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) UpdatePassword(ctx, userID, password interface{}) *gomock.Call
- type MockUploader
- type MockUploaderMockRecorder
- type MockValidation
- type MockValidationMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRepository ¶
type MockRepository struct {
// contains filtered or unexported fields
}
MockRepository is a mock of Repository interface.
func NewMockRepository ¶
func NewMockRepository(ctrl *gomock.Controller) *MockRepository
NewMockRepository creates a new mock instance.
func (*MockRepository) Authentication ¶
func (m *MockRepository) Authentication(ctx context.Context) (string, error)
Authentication mocks base method.
func (*MockRepository) CountRelationship ¶
CountRelationship mocks base method.
func (*MockRepository) CreateRelationship ¶
func (m *MockRepository) CreateRelationship(ctx context.Context, r *user.Relationship) error
CreateRelationship mocks base method.
func (*MockRepository) CreateWithOAuth ¶
CreateWithOAuth mocks base method.
func (*MockRepository) Delete ¶
func (m *MockRepository) Delete(ctx context.Context, userID string) error
Delete mocks base method.
func (*MockRepository) DeleteRelationship ¶
func (m *MockRepository) DeleteRelationship(ctx context.Context, relationshipID int) error
DeleteRelationship mocks base method.
func (*MockRepository) EXPECT ¶
func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRepository) GetRelationship ¶
func (m *MockRepository) GetRelationship(ctx context.Context, followID, followerID string) (*user.Relationship, error)
GetRelationship mocks base method.
func (*MockRepository) GetRelationshipIDByUserID ¶
func (m *MockRepository) GetRelationshipIDByUserID(ctx context.Context, followID, followerID string) (int, error)
GetRelationshipIDByUserID mocks base method.
func (*MockRepository) GetUserIDByEmail ¶
GetUserIDByEmail mocks base method.
func (*MockRepository) ListFollow ¶
func (m *MockRepository) ListFollow(ctx context.Context, q *database.ListQuery) (user.Follows, error)
ListFollow mocks base method.
func (*MockRepository) ListFollowID ¶
func (m *MockRepository) ListFollowID(ctx context.Context, userID string, userIDs ...string) ([]string, error)
ListFollowID mocks base method.
func (*MockRepository) ListFollower ¶
func (m *MockRepository) ListFollower(ctx context.Context, q *database.ListQuery) (user.Followers, error)
ListFollower mocks base method.
func (*MockRepository) ListFollowerID ¶
func (m *MockRepository) ListFollowerID(ctx context.Context, userID string, userIDs ...string) ([]string, error)
ListFollowerID mocks base method.
func (*MockRepository) ListInstanceID ¶
func (m *MockRepository) ListInstanceID(ctx context.Context, q *database.ListQuery) ([]string, error)
ListInstanceID mocks base method.
func (*MockRepository) UpdatePassword ¶
func (m *MockRepository) UpdatePassword(ctx context.Context, userID, password string) error
UpdatePassword mocks base method.
type MockRepositoryMockRecorder ¶
type MockRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockRepositoryMockRecorder is the mock recorder for MockRepository.
func (*MockRepositoryMockRecorder) Authentication ¶
func (mr *MockRepositoryMockRecorder) Authentication(ctx interface{}) *gomock.Call
Authentication indicates an expected call of Authentication.
func (*MockRepositoryMockRecorder) Count ¶
func (mr *MockRepositoryMockRecorder) Count(ctx, q interface{}) *gomock.Call
Count indicates an expected call of Count.
func (*MockRepositoryMockRecorder) CountRelationship ¶
func (mr *MockRepositoryMockRecorder) CountRelationship(ctx, q interface{}) *gomock.Call
CountRelationship indicates an expected call of CountRelationship.
func (*MockRepositoryMockRecorder) Create ¶
func (mr *MockRepositoryMockRecorder) Create(ctx, u interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockRepositoryMockRecorder) CreateRelationship ¶
func (mr *MockRepositoryMockRecorder) CreateRelationship(ctx, r interface{}) *gomock.Call
CreateRelationship indicates an expected call of CreateRelationship.
func (*MockRepositoryMockRecorder) CreateWithOAuth ¶
func (mr *MockRepositoryMockRecorder) CreateWithOAuth(ctx, u interface{}) *gomock.Call
CreateWithOAuth indicates an expected call of CreateWithOAuth.
func (*MockRepositoryMockRecorder) Delete ¶
func (mr *MockRepositoryMockRecorder) Delete(ctx, userID interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockRepositoryMockRecorder) DeleteRelationship ¶
func (mr *MockRepositoryMockRecorder) DeleteRelationship(ctx, relationshipID interface{}) *gomock.Call
DeleteRelationship indicates an expected call of DeleteRelationship.
func (*MockRepositoryMockRecorder) Get ¶
func (mr *MockRepositoryMockRecorder) Get(ctx, userID interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockRepositoryMockRecorder) GetAdmin ¶
func (mr *MockRepositoryMockRecorder) GetAdmin(ctx, userID interface{}) *gomock.Call
GetAdmin indicates an expected call of GetAdmin.
func (*MockRepositoryMockRecorder) GetRelationship ¶
func (mr *MockRepositoryMockRecorder) GetRelationship(ctx, followID, followerID interface{}) *gomock.Call
GetRelationship indicates an expected call of GetRelationship.
func (*MockRepositoryMockRecorder) GetRelationshipIDByUserID ¶
func (mr *MockRepositoryMockRecorder) GetRelationshipIDByUserID(ctx, followID, followerID interface{}) *gomock.Call
GetRelationshipIDByUserID indicates an expected call of GetRelationshipIDByUserID.
func (*MockRepositoryMockRecorder) GetUserIDByEmail ¶
func (mr *MockRepositoryMockRecorder) GetUserIDByEmail(ctx, email interface{}) *gomock.Call
GetUserIDByEmail indicates an expected call of GetUserIDByEmail.
func (*MockRepositoryMockRecorder) List ¶
func (mr *MockRepositoryMockRecorder) List(ctx, q interface{}) *gomock.Call
List indicates an expected call of List.
func (*MockRepositoryMockRecorder) ListFollow ¶
func (mr *MockRepositoryMockRecorder) ListFollow(ctx, q interface{}) *gomock.Call
ListFollow indicates an expected call of ListFollow.
func (*MockRepositoryMockRecorder) ListFollowID ¶
func (mr *MockRepositoryMockRecorder) ListFollowID(ctx, userID interface{}, userIDs ...interface{}) *gomock.Call
ListFollowID indicates an expected call of ListFollowID.
func (*MockRepositoryMockRecorder) ListFollower ¶
func (mr *MockRepositoryMockRecorder) ListFollower(ctx, q interface{}) *gomock.Call
ListFollower indicates an expected call of ListFollower.
func (*MockRepositoryMockRecorder) ListFollowerID ¶
func (mr *MockRepositoryMockRecorder) ListFollowerID(ctx, userID interface{}, userIDs ...interface{}) *gomock.Call
ListFollowerID indicates an expected call of ListFollowerID.
func (*MockRepositoryMockRecorder) ListInstanceID ¶
func (mr *MockRepositoryMockRecorder) ListInstanceID(ctx, q interface{}) *gomock.Call
ListInstanceID indicates an expected call of ListInstanceID.
func (*MockRepositoryMockRecorder) MultiGet ¶
func (mr *MockRepositoryMockRecorder) MultiGet(ctx, userIDs interface{}) *gomock.Call
MultiGet indicates an expected call of MultiGet.
func (*MockRepositoryMockRecorder) Update ¶
func (mr *MockRepositoryMockRecorder) Update(ctx, u interface{}) *gomock.Call
Update indicates an expected call of Update.
func (*MockRepositoryMockRecorder) UpdatePassword ¶
func (mr *MockRepositoryMockRecorder) UpdatePassword(ctx, userID, password interface{}) *gomock.Call
UpdatePassword indicates an expected call of UpdatePassword.
type MockUploader ¶
type MockUploader struct {
// contains filtered or unexported fields
}
MockUploader is a mock of Uploader interface.
func NewMockUploader ¶
func NewMockUploader(ctrl *gomock.Controller) *MockUploader
NewMockUploader creates a new mock instance.
func (*MockUploader) EXPECT ¶
func (m *MockUploader) EXPECT() *MockUploaderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockUploaderMockRecorder ¶
type MockUploaderMockRecorder struct {
// contains filtered or unexported fields
}
MockUploaderMockRecorder is the mock recorder for MockUploader.
func (*MockUploaderMockRecorder) Thumbnail ¶
func (mr *MockUploaderMockRecorder) Thumbnail(ctx, userID, data interface{}) *gomock.Call
Thumbnail indicates an expected call of Thumbnail.
type MockValidation ¶
type MockValidation struct {
// contains filtered or unexported fields
}
MockValidation is a mock of Validation interface.
func NewMockValidation ¶
func NewMockValidation(ctrl *gomock.Controller) *MockValidation
NewMockValidation creates a new mock instance.
func (*MockValidation) EXPECT ¶
func (m *MockValidation) EXPECT() *MockValidationMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockValidation) Relationship ¶
func (m *MockValidation) Relationship(ctx context.Context, r *user.Relationship) error
Relationship mocks base method.
type MockValidationMockRecorder ¶
type MockValidationMockRecorder struct {
// contains filtered or unexported fields
}
MockValidationMockRecorder is the mock recorder for MockValidation.
func (*MockValidationMockRecorder) Relationship ¶
func (mr *MockValidationMockRecorder) Relationship(ctx, r interface{}) *gomock.Call
Relationship indicates an expected call of Relationship.
func (*MockValidationMockRecorder) User ¶
func (mr *MockValidationMockRecorder) User(ctx, u interface{}) *gomock.Call
User indicates an expected call of User.