Documentation ¶
Index ¶
- type ThreadRepository
- func (_m *ThreadRepository) Delete(ctx context.Context, ID string) error
- func (_m *ThreadRepository) DeleteFollowThread(ctx context.Context, threadFollow entity.ThreadFollow) error
- func (_m *ThreadRepository) DeleteLike(ctx context.Context, like entity.Like) error
- func (_m *ThreadRepository) DeleteModerator(ctx context.Context, moderator entity.Moderator) error
- func (_m *ThreadRepository) FindAllByCategoryIDWithPagination(ctx context.Context, accessorUserID string, categoryID string, ...) (entity.Pagination[entity.Thread], error)
- func (_m *ThreadRepository) FindAllByUserIDWithPagination(ctx context.Context, accessorUserID string, UserID string, ...) (entity.Pagination[entity.Thread], error)
- func (_m *ThreadRepository) FindAllCommentByThreadID(ctx context.Context, threadID string, pageInfo entity.PageInfo) (entity.Pagination[entity.Comment], error)
- func (_m *ThreadRepository) FindAllModeratorByThreadID(ctx context.Context, threadID string) ([]entity.Moderator, error)
- func (_m *ThreadRepository) FindAllWithQueryAndPagination(ctx context.Context, accessorUserID string, query string, ...) (entity.Pagination[entity.Thread], error)
- func (_m *ThreadRepository) FindByID(ctx context.Context, accessorUserID string, ID string) (entity.Thread, error)
- func (_m *ThreadRepository) FindCommentByID(ctx context.Context, ID string) (entity.Comment, error)
- func (_m *ThreadRepository) IncrementTotalViewer(ID string) error
- func (_m *ThreadRepository) Insert(ctx context.Context, _a1 entity.Thread) error
- func (_m *ThreadRepository) InsertComment(ctx context.Context, comment entity.Comment) error
- func (_m *ThreadRepository) InsertFollowThread(ctx context.Context, threadFollow entity.ThreadFollow) error
- func (_m *ThreadRepository) InsertLike(ctx context.Context, like entity.Like) error
- func (_m *ThreadRepository) InsertModerator(ctx context.Context, moderator entity.Moderator) error
- func (_m *ThreadRepository) Update(ctx context.Context, ID string, _a2 entity.Thread) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ThreadRepository ¶
ThreadRepository is an autogenerated mock type for the ThreadRepository type
func NewThreadRepository ¶
func NewThreadRepository(t mockConstructorTestingTNewThreadRepository) *ThreadRepository
NewThreadRepository creates a new instance of ThreadRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ThreadRepository) Delete ¶
func (_m *ThreadRepository) Delete(ctx context.Context, ID string) error
Delete provides a mock function with given fields: ctx, ID
func (*ThreadRepository) DeleteFollowThread ¶
func (_m *ThreadRepository) DeleteFollowThread(ctx context.Context, threadFollow entity.ThreadFollow) error
DeleteFollowThread provides a mock function with given fields: ctx, threadFollow
func (*ThreadRepository) DeleteLike ¶
DeleteLike provides a mock function with given fields: ctx, like
func (*ThreadRepository) DeleteModerator ¶
DeleteModerator provides a mock function with given fields: ctx, moderator
func (*ThreadRepository) FindAllByCategoryIDWithPagination ¶
func (_m *ThreadRepository) FindAllByCategoryIDWithPagination(ctx context.Context, accessorUserID string, categoryID string, pageInfo entity.PageInfo) (entity.Pagination[entity.Thread], error)
FindAllByCategoryIDWithPagination provides a mock function with given fields: ctx, accessorUserID, categoryID, pageInfo
func (*ThreadRepository) FindAllByUserIDWithPagination ¶
func (_m *ThreadRepository) FindAllByUserIDWithPagination(ctx context.Context, accessorUserID string, UserID string, pageInfo entity.PageInfo) (entity.Pagination[entity.Thread], error)
FindAllByUserIDWithPagination provides a mock function with given fields: ctx, accessorUserID, UserID, pageInfo
func (*ThreadRepository) FindAllCommentByThreadID ¶
func (_m *ThreadRepository) FindAllCommentByThreadID(ctx context.Context, threadID string, pageInfo entity.PageInfo) (entity.Pagination[entity.Comment], error)
FindAllCommentByThreadID provides a mock function with given fields: ctx, threadID, pageInfo
func (*ThreadRepository) FindAllModeratorByThreadID ¶
func (_m *ThreadRepository) FindAllModeratorByThreadID(ctx context.Context, threadID string) ([]entity.Moderator, error)
FindAllModeratorByThreadID provides a mock function with given fields: ctx, threadID
func (*ThreadRepository) FindAllWithQueryAndPagination ¶
func (_m *ThreadRepository) FindAllWithQueryAndPagination(ctx context.Context, accessorUserID string, query string, pageInfo entity.PageInfo) (entity.Pagination[entity.Thread], error)
FindAllWithQueryAndPagination provides a mock function with given fields: ctx, accessorUserID, query, pageInfo
func (*ThreadRepository) FindByID ¶
func (_m *ThreadRepository) FindByID(ctx context.Context, accessorUserID string, ID string) (entity.Thread, error)
FindByID provides a mock function with given fields: ctx, accessorUserID, ID
func (*ThreadRepository) FindCommentByID ¶
FindCommentByID provides a mock function with given fields: ctx, ID
func (*ThreadRepository) IncrementTotalViewer ¶
func (_m *ThreadRepository) IncrementTotalViewer(ID string) error
IncrementTotalViewer provides a mock function with given fields: ID
func (*ThreadRepository) InsertComment ¶
InsertComment provides a mock function with given fields: ctx, comment
func (*ThreadRepository) InsertFollowThread ¶
func (_m *ThreadRepository) InsertFollowThread(ctx context.Context, threadFollow entity.ThreadFollow) error
InsertFollowThread provides a mock function with given fields: ctx, threadFollow
func (*ThreadRepository) InsertLike ¶
InsertLike provides a mock function with given fields: ctx, like
func (*ThreadRepository) InsertModerator ¶
InsertModerator provides a mock function with given fields: ctx, moderator