Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockAuth
- func (m *MockAuth) Delete(ctx context.Context, userID uuid.UUID) error
- func (m *MockAuth) EXPECT() *MockAuthMockRecorder
- func (m *MockAuth) FindUsersByName(ctx context.Context, name string, pq *utils.PaginationQuery) (*entity.UsersList, error)
- func (m *MockAuth) GetUserByID(ctx context.Context, userID uuid.UUID) (*entity.User, error)
- func (m *MockAuth) GetUsers(ctx context.Context, pq *utils.PaginationQuery) (*entity.UsersList, error)
- func (m *MockAuth) Login(ctx context.Context, user *entity.User) (*entity.UserWithToken, error)
- func (m *MockAuth) Register(ctx context.Context, user *entity.User) (*entity.UserWithToken, error)
- func (m *MockAuth) Update(ctx context.Context, user *entity.User) (*entity.User, error)
- type MockAuthMockRecorder
- func (mr *MockAuthMockRecorder) Delete(ctx, userID interface{}) *gomock.Call
- func (mr *MockAuthMockRecorder) FindUsersByName(ctx, name, pq interface{}) *gomock.Call
- func (mr *MockAuthMockRecorder) GetUserByID(ctx, userID interface{}) *gomock.Call
- func (mr *MockAuthMockRecorder) GetUsers(ctx, pq interface{}) *gomock.Call
- func (mr *MockAuthMockRecorder) Login(ctx, user interface{}) *gomock.Call
- func (mr *MockAuthMockRecorder) Register(ctx, user interface{}) *gomock.Call
- func (mr *MockAuthMockRecorder) Update(ctx, user interface{}) *gomock.Call
- type MockComments
- func (m *MockComments) Create(ctx context.Context, comments *entity.Comment) (*entity.Comment, error)
- func (m *MockComments) Delete(ctx context.Context, commentID uuid.UUID) error
- func (m *MockComments) EXPECT() *MockCommentsMockRecorder
- func (m *MockComments) GetAllByNewsID(ctx context.Context, newsID uuid.UUID, pq *utils.PaginationQuery) (*entity.CommentsList, error)
- func (m *MockComments) GetByID(ctx context.Context, commentID uuid.UUID) (*entity.CommentBase, error)
- func (m *MockComments) Update(ctx context.Context, comments *entity.Comment) (*entity.Comment, error)
- type MockCommentsMockRecorder
- func (mr *MockCommentsMockRecorder) Create(ctx, comments interface{}) *gomock.Call
- func (mr *MockCommentsMockRecorder) Delete(ctx, commentID interface{}) *gomock.Call
- func (mr *MockCommentsMockRecorder) GetAllByNewsID(ctx, newsID, pq interface{}) *gomock.Call
- func (mr *MockCommentsMockRecorder) GetByID(ctx, commentID interface{}) *gomock.Call
- func (mr *MockCommentsMockRecorder) Update(ctx, comments interface{}) *gomock.Call
- type MockNews
- func (m *MockNews) Create(ctx context.Context, news *entity.News) (*entity.News, error)
- func (m *MockNews) Delete(ctx context.Context, newsID uuid.UUID) error
- func (m *MockNews) EXPECT() *MockNewsMockRecorder
- func (m *MockNews) GetNews(ctx context.Context, pq *utils.PaginationQuery) (*entity.NewsList, error)
- func (m *MockNews) GetNewsByID(ctx context.Context, newsID uuid.UUID) (*entity.NewsBase, error)
- func (m *MockNews) SearchNews(ctx context.Context, title string, pq *utils.PaginationQuery) (*entity.NewsList, error)
- func (m *MockNews) Update(ctx context.Context, news *entity.News) (*entity.News, error)
- type MockNewsMockRecorder
- func (mr *MockNewsMockRecorder) Create(ctx, news interface{}) *gomock.Call
- func (mr *MockNewsMockRecorder) Delete(ctx, newsID interface{}) *gomock.Call
- func (mr *MockNewsMockRecorder) GetNews(ctx, pq interface{}) *gomock.Call
- func (mr *MockNewsMockRecorder) GetNewsByID(ctx, newsID interface{}) *gomock.Call
- func (mr *MockNewsMockRecorder) SearchNews(ctx, title, pq interface{}) *gomock.Call
- func (mr *MockNewsMockRecorder) Update(ctx, news interface{}) *gomock.Call
- type MockSession
- func (m *MockSession) CreateSession(ctx context.Context, session *entity.Session, expire int) (string, error)
- func (m *MockSession) DeleteSessionByID(ctx context.Context, sessionID string) error
- func (m *MockSession) EXPECT() *MockSessionMockRecorder
- func (m *MockSession) GetSessionByID(ctx context.Context, sessionID string) (*entity.Session, error)
- type MockSessionMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAuth ¶
type MockAuth struct {
// contains filtered or unexported fields
}
MockAuth is a mock of Auth interface.
func NewMockAuth ¶
func NewMockAuth(ctrl *gomock.Controller) *MockAuth
NewMockAuth creates a new mock instance.
func (*MockAuth) EXPECT ¶
func (m *MockAuth) EXPECT() *MockAuthMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAuth) FindUsersByName ¶
func (m *MockAuth) FindUsersByName(ctx context.Context, name string, pq *utils.PaginationQuery) (*entity.UsersList, error)
FindUsersByName mocks base method.
func (*MockAuth) GetUserByID ¶
GetUserByID mocks base method.
func (*MockAuth) GetUsers ¶
func (m *MockAuth) GetUsers(ctx context.Context, pq *utils.PaginationQuery) (*entity.UsersList, error)
GetUsers mocks base method.
type MockAuthMockRecorder ¶
type MockAuthMockRecorder struct {
// contains filtered or unexported fields
}
MockAuthMockRecorder is the mock recorder for MockAuth.
func (*MockAuthMockRecorder) Delete ¶
func (mr *MockAuthMockRecorder) Delete(ctx, userID interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockAuthMockRecorder) FindUsersByName ¶
func (mr *MockAuthMockRecorder) FindUsersByName(ctx, name, pq interface{}) *gomock.Call
FindUsersByName indicates an expected call of FindUsersByName.
func (*MockAuthMockRecorder) GetUserByID ¶
func (mr *MockAuthMockRecorder) GetUserByID(ctx, userID interface{}) *gomock.Call
GetUserByID indicates an expected call of GetUserByID.
func (*MockAuthMockRecorder) GetUsers ¶
func (mr *MockAuthMockRecorder) GetUsers(ctx, pq interface{}) *gomock.Call
GetUsers indicates an expected call of GetUsers.
func (*MockAuthMockRecorder) Login ¶
func (mr *MockAuthMockRecorder) Login(ctx, user interface{}) *gomock.Call
Login indicates an expected call of Login.
func (*MockAuthMockRecorder) Register ¶
func (mr *MockAuthMockRecorder) Register(ctx, user interface{}) *gomock.Call
Register indicates an expected call of Register.
func (*MockAuthMockRecorder) Update ¶
func (mr *MockAuthMockRecorder) Update(ctx, user interface{}) *gomock.Call
Update indicates an expected call of Update.
type MockComments ¶
type MockComments struct {
// contains filtered or unexported fields
}
MockComments is a mock of Comments interface.
func NewMockComments ¶
func NewMockComments(ctrl *gomock.Controller) *MockComments
NewMockComments creates a new mock instance.
func (*MockComments) Create ¶
func (m *MockComments) Create(ctx context.Context, comments *entity.Comment) (*entity.Comment, error)
Create mocks base method.
func (*MockComments) EXPECT ¶
func (m *MockComments) EXPECT() *MockCommentsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockComments) GetAllByNewsID ¶
func (m *MockComments) GetAllByNewsID(ctx context.Context, newsID uuid.UUID, pq *utils.PaginationQuery) (*entity.CommentsList, error)
GetAllByNewsID mocks base method.
func (*MockComments) GetByID ¶
func (m *MockComments) GetByID(ctx context.Context, commentID uuid.UUID) (*entity.CommentBase, error)
GetByID mocks base method.
type MockCommentsMockRecorder ¶
type MockCommentsMockRecorder struct {
// contains filtered or unexported fields
}
MockCommentsMockRecorder is the mock recorder for MockComments.
func (*MockCommentsMockRecorder) Create ¶
func (mr *MockCommentsMockRecorder) Create(ctx, comments interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockCommentsMockRecorder) Delete ¶
func (mr *MockCommentsMockRecorder) Delete(ctx, commentID interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockCommentsMockRecorder) GetAllByNewsID ¶
func (mr *MockCommentsMockRecorder) GetAllByNewsID(ctx, newsID, pq interface{}) *gomock.Call
GetAllByNewsID indicates an expected call of GetAllByNewsID.
func (*MockCommentsMockRecorder) GetByID ¶
func (mr *MockCommentsMockRecorder) GetByID(ctx, commentID interface{}) *gomock.Call
GetByID indicates an expected call of GetByID.
func (*MockCommentsMockRecorder) Update ¶
func (mr *MockCommentsMockRecorder) Update(ctx, comments interface{}) *gomock.Call
Update indicates an expected call of Update.
type MockNews ¶
type MockNews struct {
// contains filtered or unexported fields
}
MockNews is a mock of News interface.
func NewMockNews ¶
func NewMockNews(ctrl *gomock.Controller) *MockNews
NewMockNews creates a new mock instance.
func (*MockNews) EXPECT ¶
func (m *MockNews) EXPECT() *MockNewsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockNews) GetNews ¶
func (m *MockNews) GetNews(ctx context.Context, pq *utils.PaginationQuery) (*entity.NewsList, error)
GetNews mocks base method.
func (*MockNews) GetNewsByID ¶
GetNewsByID mocks base method.
type MockNewsMockRecorder ¶
type MockNewsMockRecorder struct {
// contains filtered or unexported fields
}
MockNewsMockRecorder is the mock recorder for MockNews.
func (*MockNewsMockRecorder) Create ¶
func (mr *MockNewsMockRecorder) Create(ctx, news interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockNewsMockRecorder) Delete ¶
func (mr *MockNewsMockRecorder) Delete(ctx, newsID interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockNewsMockRecorder) GetNews ¶
func (mr *MockNewsMockRecorder) GetNews(ctx, pq interface{}) *gomock.Call
GetNews indicates an expected call of GetNews.
func (*MockNewsMockRecorder) GetNewsByID ¶
func (mr *MockNewsMockRecorder) GetNewsByID(ctx, newsID interface{}) *gomock.Call
GetNewsByID indicates an expected call of GetNewsByID.
func (*MockNewsMockRecorder) SearchNews ¶
func (mr *MockNewsMockRecorder) SearchNews(ctx, title, pq interface{}) *gomock.Call
SearchNews indicates an expected call of SearchNews.
func (*MockNewsMockRecorder) Update ¶
func (mr *MockNewsMockRecorder) Update(ctx, news interface{}) *gomock.Call
Update indicates an expected call of Update.
type MockSession ¶
type MockSession struct {
// contains filtered or unexported fields
}
MockSession is a mock of Session interface.
func NewMockSession ¶
func NewMockSession(ctrl *gomock.Controller) *MockSession
NewMockSession creates a new mock instance.
func (*MockSession) CreateSession ¶
func (m *MockSession) CreateSession(ctx context.Context, session *entity.Session, expire int) (string, error)
CreateSession mocks base method.
func (*MockSession) DeleteSessionByID ¶
func (m *MockSession) DeleteSessionByID(ctx context.Context, sessionID string) error
DeleteSessionByID mocks base method.
func (*MockSession) EXPECT ¶
func (m *MockSession) EXPECT() *MockSessionMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSession) GetSessionByID ¶
func (m *MockSession) GetSessionByID(ctx context.Context, sessionID string) (*entity.Session, error)
GetSessionByID mocks base method.
type MockSessionMockRecorder ¶
type MockSessionMockRecorder struct {
// contains filtered or unexported fields
}
MockSessionMockRecorder is the mock recorder for MockSession.
func (*MockSessionMockRecorder) CreateSession ¶
func (mr *MockSessionMockRecorder) CreateSession(ctx, session, expire interface{}) *gomock.Call
CreateSession indicates an expected call of CreateSession.
func (*MockSessionMockRecorder) DeleteSessionByID ¶
func (mr *MockSessionMockRecorder) DeleteSessionByID(ctx, sessionID interface{}) *gomock.Call
DeleteSessionByID indicates an expected call of DeleteSessionByID.
func (*MockSessionMockRecorder) GetSessionByID ¶
func (mr *MockSessionMockRecorder) GetSessionByID(ctx, sessionID interface{}) *gomock.Call
GetSessionByID indicates an expected call of GetSessionByID.