mock_db

package
v0.0.0-...-0064678 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mock_db is a generated GoMock package.

Package mock_db is a generated GoMock package.

Package mock_db is a generated GoMock package.

Package mock_db is a generated GoMock package.

Package mock_db is a generated GoMock package.

Package mock_db is a generated GoMock package.

Package mock_db is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockChatRepository

type MockChatRepository struct {
	// contains filtered or unexported fields
}

MockChatRepository is a mock of ChatRepository interface.

func NewMockChatRepository

func NewMockChatRepository(ctrl *gomock.Controller) *MockChatRepository

NewMockChatRepository creates a new mock instance.

func (*MockChatRepository) CreateDialog

func (m *MockChatRepository) CreateDialog(ctx context.Context, userID, name string, authorIDs []string) (*core.Dialog, error)

CreateDialog mocks base method.

func (*MockChatRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockChatRepository) GetDialogByID

func (m *MockChatRepository) GetDialogByID(ctx context.Context, dialogID string) (*core.Dialog, error)

GetDialogByID mocks base method.

func (*MockChatRepository) IsChatExist

func (m *MockChatRepository) IsChatExist(ctx context.Context, dialogID string) error

IsChatExist mocks base method.

func (*MockChatRepository) IsDialogExist

func (m *MockChatRepository) IsDialogExist(ctx context.Context, userID1, userID2 string) (string, error)

IsDialogExist mocks base method.

func (*MockChatRepository) IsUniqDialog

func (m *MockChatRepository) IsUniqDialog(ctx context.Context, userID1, userID2 string) error

IsUniqDialog mocks base method.

func (*MockChatRepository) ReadMessage

func (m *MockChatRepository) ReadMessage(ctx context.Context, userID, messageID, dialogID string) error

ReadMessage mocks base method.

func (*MockChatRepository) SendMessage

func (m *MockChatRepository) SendMessage(ctx context.Context, message core.Message, dialogID string) error

SendMessage mocks base method.

type MockChatRepositoryMockRecorder

type MockChatRepositoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockChatRepositoryMockRecorder is the mock recorder for MockChatRepository.

func (*MockChatRepositoryMockRecorder) CreateDialog

func (mr *MockChatRepositoryMockRecorder) CreateDialog(ctx, userID, name, authorIDs interface{}) *gomock.Call

CreateDialog indicates an expected call of CreateDialog.

func (*MockChatRepositoryMockRecorder) GetDialogByID

func (mr *MockChatRepositoryMockRecorder) GetDialogByID(ctx, dialogID interface{}) *gomock.Call

GetDialogByID indicates an expected call of GetDialogByID.

func (*MockChatRepositoryMockRecorder) IsChatExist

func (mr *MockChatRepositoryMockRecorder) IsChatExist(ctx, dialogID interface{}) *gomock.Call

IsChatExist indicates an expected call of IsChatExist.

func (*MockChatRepositoryMockRecorder) IsDialogExist

func (mr *MockChatRepositoryMockRecorder) IsDialogExist(ctx, userID1, userID2 interface{}) *gomock.Call

IsDialogExist indicates an expected call of IsDialogExist.

func (*MockChatRepositoryMockRecorder) IsUniqDialog

func (mr *MockChatRepositoryMockRecorder) IsUniqDialog(ctx, userID1, userID2 interface{}) *gomock.Call

IsUniqDialog indicates an expected call of IsUniqDialog.

func (*MockChatRepositoryMockRecorder) ReadMessage

func (mr *MockChatRepositoryMockRecorder) ReadMessage(ctx, userID, messageID, dialogID interface{}) *gomock.Call

ReadMessage indicates an expected call of ReadMessage.

func (*MockChatRepositoryMockRecorder) SendMessage

func (mr *MockChatRepositoryMockRecorder) SendMessage(ctx, message, dialogID interface{}) *gomock.Call

SendMessage indicates an expected call of SendMessage.

type MockCommentRepository

type MockCommentRepository struct {
	// contains filtered or unexported fields
}

MockCommentRepository is a mock of CommentRepository interface.

func NewMockCommentRepository

func NewMockCommentRepository(ctrl *gomock.Controller) *MockCommentRepository

NewMockCommentRepository creates a new mock instance.

func (*MockCommentRepository) CreateComment

func (m *MockCommentRepository) CreateComment(ctx context.Context, comment *core.Comment) (*core.Comment, error)

CreateComment mocks base method.

func (*MockCommentRepository) DeleteComment

func (m *MockCommentRepository) DeleteComment(ctx context.Context, commentID string) error

DeleteComment mocks base method.

func (*MockCommentRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockCommentRepository) EditComment

func (m *MockCommentRepository) EditComment(ctx context.Context, comment *core.Comment) (*core.Comment, error)

EditComment mocks base method.

func (*MockCommentRepository) GetCommentByID

func (m *MockCommentRepository) GetCommentByID(ctx context.Context, commentID string) (*core.Comment, error)

GetCommentByID mocks base method.

type MockCommentRepositoryMockRecorder

type MockCommentRepositoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockCommentRepositoryMockRecorder is the mock recorder for MockCommentRepository.

func (*MockCommentRepositoryMockRecorder) CreateComment

func (mr *MockCommentRepositoryMockRecorder) CreateComment(ctx, comment interface{}) *gomock.Call

CreateComment indicates an expected call of CreateComment.

func (*MockCommentRepositoryMockRecorder) DeleteComment

func (mr *MockCommentRepositoryMockRecorder) DeleteComment(ctx, commentID interface{}) *gomock.Call

DeleteComment indicates an expected call of DeleteComment.

func (*MockCommentRepositoryMockRecorder) EditComment

func (mr *MockCommentRepositoryMockRecorder) EditComment(ctx, comment interface{}) *gomock.Call

EditComment indicates an expected call of EditComment.

func (*MockCommentRepositoryMockRecorder) GetCommentByID

func (mr *MockCommentRepositoryMockRecorder) GetCommentByID(ctx, commentID interface{}) *gomock.Call

GetCommentByID indicates an expected call of GetCommentByID.

type MockCommunityRepository

type MockCommunityRepository struct {
	// contains filtered or unexported fields
}

MockCommunityRepository is a mock of CommunityRepository interface.

func NewMockCommunityRepository

func NewMockCommunityRepository(ctrl *gomock.Controller) *MockCommunityRepository

NewMockCommunityRepository creates a new mock instance.

func (*MockCommunityRepository) AddFollower

func (m *MockCommunityRepository) AddFollower(ctx context.Context, communityID, userID string) error

AddFollower mocks base method.

func (*MockCommunityRepository) CommunityAddPost

func (m *MockCommunityRepository) CommunityAddPost(ctx context.Context, communityID, postID string) error

CommunityAddPost mocks base method.

func (*MockCommunityRepository) CommunityDeletePost

func (m *MockCommunityRepository) CommunityDeletePost(ctx context.Context, communityID, postID string) error

CommunityDeletePost mocks base method.

func (*MockCommunityRepository) CreateCommunity

func (m *MockCommunityRepository) CreateCommunity(ctx context.Context, community *core.Community) (*core.Community, error)

CreateCommunity mocks base method.

func (*MockCommunityRepository) DeleteAdmin

func (m *MockCommunityRepository) DeleteAdmin(ctx context.Context, communityID, userID string) error

DeleteAdmin mocks base method.

func (*MockCommunityRepository) DeleteCommunity

func (m *MockCommunityRepository) DeleteCommunity(ctx context.Context, communityID string) error

DeleteCommunity mocks base method.

func (*MockCommunityRepository) DeleteFollower

func (m *MockCommunityRepository) DeleteFollower(ctx context.Context, communityID, userID string) error

DeleteFollower mocks base method.

func (*MockCommunityRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockCommunityRepository) EditCommunity

func (m *MockCommunityRepository) EditCommunity(ctx context.Context, community *core.Community) error

EditCommunity mocks base method.

func (*MockCommunityRepository) GetAllCommunities

func (m *MockCommunityRepository) GetAllCommunities(ctx context.Context, limit, pageNumber int64) ([]core.Community, *common.PageResponse, error)

GetAllCommunities mocks base method.

func (*MockCommunityRepository) GetCommunityByID

func (m *MockCommunityRepository) GetCommunityByID(ctx context.Context, communityID string) (*core.Community, error)

GetCommunityByID mocks base method.

func (*MockCommunityRepository) SearchCommunities

func (m *MockCommunityRepository) SearchCommunities(ctx context.Context, selector string, limit, pageNumber int64) ([]core.Community, *common.PageResponse, error)

SearchCommunities mocks base method.

type MockCommunityRepositoryMockRecorder

type MockCommunityRepositoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockCommunityRepositoryMockRecorder is the mock recorder for MockCommunityRepository.

func (*MockCommunityRepositoryMockRecorder) AddFollower

func (mr *MockCommunityRepositoryMockRecorder) AddFollower(ctx, communityID, userID interface{}) *gomock.Call

AddFollower indicates an expected call of AddFollower.

func (*MockCommunityRepositoryMockRecorder) CommunityAddPost

func (mr *MockCommunityRepositoryMockRecorder) CommunityAddPost(ctx, communityID, postID interface{}) *gomock.Call

CommunityAddPost indicates an expected call of CommunityAddPost.

func (*MockCommunityRepositoryMockRecorder) CommunityDeletePost

func (mr *MockCommunityRepositoryMockRecorder) CommunityDeletePost(ctx, communityID, postID interface{}) *gomock.Call

CommunityDeletePost indicates an expected call of CommunityDeletePost.

func (*MockCommunityRepositoryMockRecorder) CreateCommunity

func (mr *MockCommunityRepositoryMockRecorder) CreateCommunity(ctx, community interface{}) *gomock.Call

CreateCommunity indicates an expected call of CreateCommunity.

func (*MockCommunityRepositoryMockRecorder) DeleteAdmin

func (mr *MockCommunityRepositoryMockRecorder) DeleteAdmin(ctx, communityID, userID interface{}) *gomock.Call

DeleteAdmin indicates an expected call of DeleteAdmin.

func (*MockCommunityRepositoryMockRecorder) DeleteCommunity

func (mr *MockCommunityRepositoryMockRecorder) DeleteCommunity(ctx, communityID interface{}) *gomock.Call

DeleteCommunity indicates an expected call of DeleteCommunity.

func (*MockCommunityRepositoryMockRecorder) DeleteFollower

func (mr *MockCommunityRepositoryMockRecorder) DeleteFollower(ctx, communityID, userID interface{}) *gomock.Call

DeleteFollower indicates an expected call of DeleteFollower.

func (*MockCommunityRepositoryMockRecorder) EditCommunity

func (mr *MockCommunityRepositoryMockRecorder) EditCommunity(ctx, community interface{}) *gomock.Call

EditCommunity indicates an expected call of EditCommunity.

func (*MockCommunityRepositoryMockRecorder) GetAllCommunities

func (mr *MockCommunityRepositoryMockRecorder) GetAllCommunities(ctx, limit, pageNumber interface{}) *gomock.Call

GetAllCommunities indicates an expected call of GetAllCommunities.

func (*MockCommunityRepositoryMockRecorder) GetCommunityByID

func (mr *MockCommunityRepositoryMockRecorder) GetCommunityByID(ctx, communityID interface{}) *gomock.Call

GetCommunityByID indicates an expected call of GetCommunityByID.

func (*MockCommunityRepositoryMockRecorder) SearchCommunities

func (mr *MockCommunityRepositoryMockRecorder) SearchCommunities(ctx, selector, limit, pageNumber interface{}) *gomock.Call

SearchCommunities indicates an expected call of SearchCommunities.

type MockFriendsRepository

type MockFriendsRepository struct {
	// contains filtered or unexported fields
}

MockFriendsRepository is a mock of FriendsRepository interface.

func NewMockFriendsRepository

func NewMockFriendsRepository(ctrl *gomock.Controller) *MockFriendsRepository

NewMockFriendsRepository creates a new mock instance.

func (*MockFriendsRepository) CreateFriends

func (m *MockFriendsRepository) CreateFriends(ctx context.Context, userID string) error

CreateFriends mocks base method.

func (*MockFriendsRepository) CreateRequest

func (m *MockFriendsRepository) CreateRequest(ctx context.Context, from, to string) error

CreateRequest mocks base method.

func (*MockFriendsRepository) DeleteFriend

func (m *MockFriendsRepository) DeleteFriend(ctx context.Context, userID1, userID2 string) error

DeleteFriend mocks base method.

func (*MockFriendsRepository) DeleteRequest

func (m *MockFriendsRepository) DeleteRequest(ctx context.Context, from, to string) error

DeleteRequest mocks base method.

func (*MockFriendsRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockFriendsRepository) GetFriends

func (m *MockFriendsRepository) GetFriends(ctx context.Context, userID string) ([]string, error)

GetFriends mocks base method.

func (*MockFriendsRepository) GetIncomingRequests

func (m *MockFriendsRepository) GetIncomingRequests(ctx context.Context, userID string) ([]string, error)

GetIncomingRequests mocks base method.

func (*MockFriendsRepository) GetOutcomingRequests

func (m *MockFriendsRepository) GetOutcomingRequests(ctx context.Context, userID string) ([]string, error)

GetOutcomingRequests mocks base method.

func (*MockFriendsRepository) IsNotFriend

func (m *MockFriendsRepository) IsNotFriend(ctx context.Context, from, to string) error

IsNotFriend mocks base method.

func (*MockFriendsRepository) IsUniqRequest

func (m *MockFriendsRepository) IsUniqRequest(ctx context.Context, from, to string) error

IsUniqRequest mocks base method.

func (*MockFriendsRepository) MakeFriends

func (m *MockFriendsRepository) MakeFriends(ctx context.Context, userID1, userID2 string) error

MakeFriends mocks base method.

type MockFriendsRepositoryMockRecorder

type MockFriendsRepositoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockFriendsRepositoryMockRecorder is the mock recorder for MockFriendsRepository.

func (*MockFriendsRepositoryMockRecorder) CreateFriends

func (mr *MockFriendsRepositoryMockRecorder) CreateFriends(ctx, userID interface{}) *gomock.Call

CreateFriends indicates an expected call of CreateFriends.

func (*MockFriendsRepositoryMockRecorder) CreateRequest

func (mr *MockFriendsRepositoryMockRecorder) CreateRequest(ctx, from, to interface{}) *gomock.Call

CreateRequest indicates an expected call of CreateRequest.

func (*MockFriendsRepositoryMockRecorder) DeleteFriend

func (mr *MockFriendsRepositoryMockRecorder) DeleteFriend(ctx, userID1, userID2 interface{}) *gomock.Call

DeleteFriend indicates an expected call of DeleteFriend.

func (*MockFriendsRepositoryMockRecorder) DeleteRequest

func (mr *MockFriendsRepositoryMockRecorder) DeleteRequest(ctx, from, to interface{}) *gomock.Call

DeleteRequest indicates an expected call of DeleteRequest.

func (*MockFriendsRepositoryMockRecorder) GetFriends

func (mr *MockFriendsRepositoryMockRecorder) GetFriends(ctx, userID interface{}) *gomock.Call

GetFriends indicates an expected call of GetFriends.

func (*MockFriendsRepositoryMockRecorder) GetIncomingRequests

func (mr *MockFriendsRepositoryMockRecorder) GetIncomingRequests(ctx, userID interface{}) *gomock.Call

GetIncomingRequests indicates an expected call of GetIncomingRequests.

func (*MockFriendsRepositoryMockRecorder) GetOutcomingRequests

func (mr *MockFriendsRepositoryMockRecorder) GetOutcomingRequests(ctx, userID interface{}) *gomock.Call

GetOutcomingRequests indicates an expected call of GetOutcomingRequests.

func (*MockFriendsRepositoryMockRecorder) IsNotFriend

func (mr *MockFriendsRepositoryMockRecorder) IsNotFriend(ctx, from, to interface{}) *gomock.Call

IsNotFriend indicates an expected call of IsNotFriend.

func (*MockFriendsRepositoryMockRecorder) IsUniqRequest

func (mr *MockFriendsRepositoryMockRecorder) IsUniqRequest(ctx, from, to interface{}) *gomock.Call

IsUniqRequest indicates an expected call of IsUniqRequest.

func (*MockFriendsRepositoryMockRecorder) MakeFriends

func (mr *MockFriendsRepositoryMockRecorder) MakeFriends(ctx, userID1, userID2 interface{}) *gomock.Call

MakeFriends indicates an expected call of MakeFriends.

type MockLikeRepository

type MockLikeRepository struct {
	// contains filtered or unexported fields
}

MockLikeRepository is a mock of LikeRepository interface.

func NewMockLikeRepository

func NewMockLikeRepository(ctrl *gomock.Controller) *MockLikeRepository

NewMockLikeRepository creates a new mock instance.

func (*MockLikeRepository) CreateLike

func (m *MockLikeRepository) CreateLike(ctx context.Context, like *core.Like) (*core.Like, error)

CreateLike mocks base method.

func (*MockLikeRepository) DeleteLike

func (m *MockLikeRepository) DeleteLike(ctx context.Context, subjectID string) error

DeleteLike mocks base method.

func (*MockLikeRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockLikeRepository) GetLikeBySubjectID

func (m *MockLikeRepository) GetLikeBySubjectID(ctx context.Context, subjectID string) (*core.Like, error)

GetLikeBySubjectID mocks base method.

func (*MockLikeRepository) IncreaseLike

func (m *MockLikeRepository) IncreaseLike(ctx context.Context, subjectID, userID string) error

IncreaseLike mocks base method.

func (*MockLikeRepository) ReduceLike

func (m *MockLikeRepository) ReduceLike(ctx context.Context, subjectID, userID string) error

ReduceLike mocks base method.

type MockLikeRepositoryMockRecorder

type MockLikeRepositoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockLikeRepositoryMockRecorder is the mock recorder for MockLikeRepository.

func (*MockLikeRepositoryMockRecorder) CreateLike

func (mr *MockLikeRepositoryMockRecorder) CreateLike(ctx, like interface{}) *gomock.Call

CreateLike indicates an expected call of CreateLike.

func (*MockLikeRepositoryMockRecorder) DeleteLike

func (mr *MockLikeRepositoryMockRecorder) DeleteLike(ctx, subjectID interface{}) *gomock.Call

DeleteLike indicates an expected call of DeleteLike.

func (*MockLikeRepositoryMockRecorder) GetLikeBySubjectID

func (mr *MockLikeRepositoryMockRecorder) GetLikeBySubjectID(ctx, subjectID interface{}) *gomock.Call

GetLikeBySubjectID indicates an expected call of GetLikeBySubjectID.

func (*MockLikeRepositoryMockRecorder) IncreaseLike

func (mr *MockLikeRepositoryMockRecorder) IncreaseLike(ctx, subjectID, userID interface{}) *gomock.Call

IncreaseLike indicates an expected call of IncreaseLike.

func (*MockLikeRepositoryMockRecorder) ReduceLike

func (mr *MockLikeRepositoryMockRecorder) ReduceLike(ctx, subjectID, userID interface{}) *gomock.Call

ReduceLike indicates an expected call of ReduceLike.

type MockPostRepository

type MockPostRepository struct {
	// contains filtered or unexported fields
}

MockPostRepository is a mock of PostRepository interface.

func NewMockPostRepository

func NewMockPostRepository(ctrl *gomock.Controller) *MockPostRepository

NewMockPostRepository creates a new mock instance.

func (*MockPostRepository) CreatePost

func (m *MockPostRepository) CreatePost(ctx context.Context, post *core.Post) (*core.Post, error)

CreatePost mocks base method.

func (*MockPostRepository) DeletePost

func (m *MockPostRepository) DeletePost(ctx context.Context, postID string) error

DeletePost mocks base method.

func (*MockPostRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockPostRepository) EditPost

func (m *MockPostRepository) EditPost(ctx context.Context, post *core.Post) (*core.Post, error)

EditPost mocks base method.

func (*MockPostRepository) GetFeed

func (m *MockPostRepository) GetFeed(ctx context.Context, userID string, pageNumber, limit int64) ([]core.Post, *common.PageResponse, error)

GetFeed mocks base method.

func (*MockPostRepository) GetPostByID

func (m *MockPostRepository) GetPostByID(ctx context.Context, postID string) (*core.Post, error)

GetPostByID mocks base method.

func (*MockPostRepository) GetPostsByUserID

func (m *MockPostRepository) GetPostsByUserID(ctx context.Context, userID string, pageNumber, limit int64) ([]core.Post, *common.PageResponse, error)

GetPostsByUserID mocks base method.

func (*MockPostRepository) PostAddComment

func (m *MockPostRepository) PostAddComment(ctx context.Context, postID, commentID string) error

PostAddComment mocks base method.

func (*MockPostRepository) PostCheckComment

func (m *MockPostRepository) PostCheckComment(ctx context.Context, post *core.Post, commentID string) error

PostCheckComment mocks base method.

func (*MockPostRepository) PostDeleteComment

func (m *MockPostRepository) PostDeleteComment(ctx context.Context, postID, commentID string) error

PostDeleteComment mocks base method.

type MockPostRepositoryMockRecorder

type MockPostRepositoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockPostRepositoryMockRecorder is the mock recorder for MockPostRepository.

func (*MockPostRepositoryMockRecorder) CreatePost

func (mr *MockPostRepositoryMockRecorder) CreatePost(ctx, post interface{}) *gomock.Call

CreatePost indicates an expected call of CreatePost.

func (*MockPostRepositoryMockRecorder) DeletePost

func (mr *MockPostRepositoryMockRecorder) DeletePost(ctx, postID interface{}) *gomock.Call

DeletePost indicates an expected call of DeletePost.

func (*MockPostRepositoryMockRecorder) EditPost

func (mr *MockPostRepositoryMockRecorder) EditPost(ctx, post interface{}) *gomock.Call

EditPost indicates an expected call of EditPost.

func (*MockPostRepositoryMockRecorder) GetFeed

func (mr *MockPostRepositoryMockRecorder) GetFeed(ctx, userID, pageNumber, limit interface{}) *gomock.Call

GetFeed indicates an expected call of GetFeed.

func (*MockPostRepositoryMockRecorder) GetPostByID

func (mr *MockPostRepositoryMockRecorder) GetPostByID(ctx, postID interface{}) *gomock.Call

GetPostByID indicates an expected call of GetPostByID.

func (*MockPostRepositoryMockRecorder) GetPostsByUserID

func (mr *MockPostRepositoryMockRecorder) GetPostsByUserID(ctx, userID, pageNumber, limit interface{}) *gomock.Call

GetPostsByUserID indicates an expected call of GetPostsByUserID.

func (*MockPostRepositoryMockRecorder) PostAddComment

func (mr *MockPostRepositoryMockRecorder) PostAddComment(ctx, postID, commentID interface{}) *gomock.Call

PostAddComment indicates an expected call of PostAddComment.

func (*MockPostRepositoryMockRecorder) PostCheckComment

func (mr *MockPostRepositoryMockRecorder) PostCheckComment(ctx, post, commentID interface{}) *gomock.Call

PostCheckComment indicates an expected call of PostCheckComment.

func (*MockPostRepositoryMockRecorder) PostDeleteComment

func (mr *MockPostRepositoryMockRecorder) PostDeleteComment(ctx, postID, commentID interface{}) *gomock.Call

PostDeleteComment indicates an expected call of PostDeleteComment.

type MockUserRepository

type MockUserRepository struct {
	// contains filtered or unexported fields
}

MockUserRepository is a mock of UserRepository interface.

func NewMockUserRepository

func NewMockUserRepository(ctrl *gomock.Controller) *MockUserRepository

NewMockUserRepository creates a new mock instance.

func (*MockUserRepository) AddDialog

func (m *MockUserRepository) AddDialog(ctx context.Context, dialogID, userID string) error

AddDialog mocks base method.

func (*MockUserRepository) CheckUserEmailExistence

func (m *MockUserRepository) CheckUserEmailExistence(ctx context.Context, email string) (bool, error)

CheckUserEmailExistence mocks base method.

func (*MockUserRepository) CheckUserIDExistence

func (m *MockUserRepository) CheckUserIDExistence(ctx context.Context, id string) (bool, error)

CheckUserIDExistence mocks base method.

func (*MockUserRepository) CreateUser

func (m *MockUserRepository) CreateUser(ctx context.Context, user *core.User) error

CreateUser mocks base method.

func (*MockUserRepository) DeleteUser

func (m *MockUserRepository) DeleteUser(ctx context.Context, user *core.User) error

DeleteUser mocks base method.

func (*MockUserRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockUserRepository) GetUserByEmail

func (m *MockUserRepository) GetUserByEmail(ctx context.Context, email string) (*core.User, error)

GetUserByEmail mocks base method.

func (*MockUserRepository) GetUserByID

func (m *MockUserRepository) GetUserByID(ctx context.Context, ID string) (*core.User, error)

GetUserByID mocks base method.

func (*MockUserRepository) GetUserDialogs

func (m *MockUserRepository) GetUserDialogs(ctx context.Context, userID string) ([]string, error)

GetUserDialogs mocks base method.

func (*MockUserRepository) InsertUser

func (m *MockUserRepository) InsertUser(ctx context.Context, user *core.User) error

InsertUser mocks base method.

func (*MockUserRepository) IsUserInDialog

func (m *MockUserRepository) IsUserInDialog(ctx context.Context, userID, dialogID string) (bool, error)

IsUserInDialog mocks base method.

func (*MockUserRepository) SelectUsers

func (m *MockUserRepository) SelectUsers(ctx context.Context, selector string, pageNumber, limit int64) ([]*core.User, *common.PageResponse, error)

SelectUsers mocks base method.

func (*MockUserRepository) UpdateUser

func (m *MockUserRepository) UpdateUser(ctx context.Context, user *core.User) error

UpdateUser mocks base method.

func (*MockUserRepository) UserAddCommunity

func (m *MockUserRepository) UserAddCommunity(ctx context.Context, userID, communityID string) error

UserAddCommunity mocks base method.

func (*MockUserRepository) UserAddPost

func (m *MockUserRepository) UserAddPost(ctx context.Context, userID, postID string) error

UserAddPost mocks base method.

func (*MockUserRepository) UserCheckCommunity

func (m *MockUserRepository) UserCheckCommunity(ctx context.Context, userID, communityID string) error

UserCheckCommunity mocks base method.

func (*MockUserRepository) UserCheckDialog

func (m *MockUserRepository) UserCheckDialog(ctx context.Context, dialogID, userID string) error

UserCheckDialog mocks base method.

func (*MockUserRepository) UserCheckPost

func (m *MockUserRepository) UserCheckPost(ctx context.Context, user *core.User, postID string) error

UserCheckPost mocks base method.

func (*MockUserRepository) UserDeleteCommunity

func (m *MockUserRepository) UserDeleteCommunity(ctx context.Context, userID, communityID string) error

UserDeleteCommunity mocks base method.

func (*MockUserRepository) UserDeletePost

func (m *MockUserRepository) UserDeletePost(ctx context.Context, userID, postID string) error

UserDeletePost mocks base method.

type MockUserRepositoryMockRecorder

type MockUserRepositoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockUserRepositoryMockRecorder is the mock recorder for MockUserRepository.

func (*MockUserRepositoryMockRecorder) AddDialog

func (mr *MockUserRepositoryMockRecorder) AddDialog(ctx, dialogID, userID interface{}) *gomock.Call

AddDialog indicates an expected call of AddDialog.

func (*MockUserRepositoryMockRecorder) CheckUserEmailExistence

func (mr *MockUserRepositoryMockRecorder) CheckUserEmailExistence(ctx, email interface{}) *gomock.Call

CheckUserEmailExistence indicates an expected call of CheckUserEmailExistence.

func (*MockUserRepositoryMockRecorder) CheckUserIDExistence

func (mr *MockUserRepositoryMockRecorder) CheckUserIDExistence(ctx, id interface{}) *gomock.Call

CheckUserIDExistence indicates an expected call of CheckUserIDExistence.

func (*MockUserRepositoryMockRecorder) CreateUser

func (mr *MockUserRepositoryMockRecorder) CreateUser(ctx, user interface{}) *gomock.Call

CreateUser indicates an expected call of CreateUser.

func (*MockUserRepositoryMockRecorder) DeleteUser

func (mr *MockUserRepositoryMockRecorder) DeleteUser(ctx, user interface{}) *gomock.Call

DeleteUser indicates an expected call of DeleteUser.

func (*MockUserRepositoryMockRecorder) GetUserByEmail

func (mr *MockUserRepositoryMockRecorder) GetUserByEmail(ctx, email interface{}) *gomock.Call

GetUserByEmail indicates an expected call of GetUserByEmail.

func (*MockUserRepositoryMockRecorder) GetUserByID

func (mr *MockUserRepositoryMockRecorder) GetUserByID(ctx, ID interface{}) *gomock.Call

GetUserByID indicates an expected call of GetUserByID.

func (*MockUserRepositoryMockRecorder) GetUserDialogs

func (mr *MockUserRepositoryMockRecorder) GetUserDialogs(ctx, userID interface{}) *gomock.Call

GetUserDialogs indicates an expected call of GetUserDialogs.

func (*MockUserRepositoryMockRecorder) InsertUser

func (mr *MockUserRepositoryMockRecorder) InsertUser(ctx, user interface{}) *gomock.Call

InsertUser indicates an expected call of InsertUser.

func (*MockUserRepositoryMockRecorder) IsUserInDialog

func (mr *MockUserRepositoryMockRecorder) IsUserInDialog(ctx, userID, dialogID interface{}) *gomock.Call

IsUserInDialog indicates an expected call of IsUserInDialog.

func (*MockUserRepositoryMockRecorder) SelectUsers

func (mr *MockUserRepositoryMockRecorder) SelectUsers(ctx, selector, pageNumber, limit interface{}) *gomock.Call

SelectUsers indicates an expected call of SelectUsers.

func (*MockUserRepositoryMockRecorder) UpdateUser

func (mr *MockUserRepositoryMockRecorder) UpdateUser(ctx, user interface{}) *gomock.Call

UpdateUser indicates an expected call of UpdateUser.

func (*MockUserRepositoryMockRecorder) UserAddCommunity

func (mr *MockUserRepositoryMockRecorder) UserAddCommunity(ctx, userID, communityID interface{}) *gomock.Call

UserAddCommunity indicates an expected call of UserAddCommunity.

func (*MockUserRepositoryMockRecorder) UserAddPost

func (mr *MockUserRepositoryMockRecorder) UserAddPost(ctx, userID, postID interface{}) *gomock.Call

UserAddPost indicates an expected call of UserAddPost.

func (*MockUserRepositoryMockRecorder) UserCheckCommunity

func (mr *MockUserRepositoryMockRecorder) UserCheckCommunity(ctx, userID, communityID interface{}) *gomock.Call

UserCheckCommunity indicates an expected call of UserCheckCommunity.

func (*MockUserRepositoryMockRecorder) UserCheckDialog

func (mr *MockUserRepositoryMockRecorder) UserCheckDialog(ctx, dialogID, userID interface{}) *gomock.Call

UserCheckDialog indicates an expected call of UserCheckDialog.

func (*MockUserRepositoryMockRecorder) UserCheckPost

func (mr *MockUserRepositoryMockRecorder) UserCheckPost(ctx, user, postID interface{}) *gomock.Call

UserCheckPost indicates an expected call of UserCheckPost.

func (*MockUserRepositoryMockRecorder) UserDeleteCommunity

func (mr *MockUserRepositoryMockRecorder) UserDeleteCommunity(ctx, userID, communityID interface{}) *gomock.Call

UserDeleteCommunity indicates an expected call of UserDeleteCommunity.

func (*MockUserRepositoryMockRecorder) UserDeletePost

func (mr *MockUserRepositoryMockRecorder) UserDeletePost(ctx, userID, postID interface{}) *gomock.Call

UserDeletePost indicates an expected call of UserDeletePost.

Jump to

Keyboard shortcuts

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