Versions in this module Expand all Collapse all v0 v0.6.0 Jun 30, 2023 Changes in this version + type DiscussionRepository struct + func NewDiscussionRepository(t mockConstructorTestingTNewDiscussionRepository) *DiscussionRepository + func (_m *DiscussionRepository) Create(ctx context.Context, ns *namespace.Namespace, _a2 *discussion.Discussion) (string, error) + func (_m *DiscussionRepository) CreateComment(ctx context.Context, ns *namespace.Namespace, cmt *discussion.Comment) (string, error) + func (_m *DiscussionRepository) DeleteComment(ctx context.Context, commentID string, discussionID string) error + func (_m *DiscussionRepository) EXPECT() *DiscussionRepository_Expecter + func (_m *DiscussionRepository) Get(ctx context.Context, did string) (discussion.Discussion, error) + func (_m *DiscussionRepository) GetAll(ctx context.Context, filter discussion.Filter) ([]discussion.Discussion, error) + func (_m *DiscussionRepository) GetAllComments(ctx context.Context, discussionID string, filter discussion.Filter) ([]discussion.Comment, error) + func (_m *DiscussionRepository) GetComment(ctx context.Context, commentID string, discussionID string) (discussion.Comment, error) + func (_m *DiscussionRepository) Patch(ctx context.Context, _a1 *discussion.Discussion) error + func (_m *DiscussionRepository) UpdateComment(ctx context.Context, cmt *discussion.Comment) error + type DiscussionRepository_CreateComment_Call struct + func (_c *DiscussionRepository_CreateComment_Call) Return(_a0 string, _a1 error) *DiscussionRepository_CreateComment_Call + func (_c *DiscussionRepository_CreateComment_Call) Run(...) *DiscussionRepository_CreateComment_Call + func (_c *DiscussionRepository_CreateComment_Call) RunAndReturn(...) *DiscussionRepository_CreateComment_Call + type DiscussionRepository_Create_Call struct + func (_c *DiscussionRepository_Create_Call) Return(_a0 string, _a1 error) *DiscussionRepository_Create_Call + func (_c *DiscussionRepository_Create_Call) Run(...) *DiscussionRepository_Create_Call + func (_c *DiscussionRepository_Create_Call) RunAndReturn(...) *DiscussionRepository_Create_Call + type DiscussionRepository_DeleteComment_Call struct + func (_c *DiscussionRepository_DeleteComment_Call) Return(_a0 error) *DiscussionRepository_DeleteComment_Call + func (_c *DiscussionRepository_DeleteComment_Call) Run(run func(ctx context.Context, commentID string, discussionID string)) *DiscussionRepository_DeleteComment_Call + func (_c *DiscussionRepository_DeleteComment_Call) RunAndReturn(run func(context.Context, string, string) error) *DiscussionRepository_DeleteComment_Call + type DiscussionRepository_Expecter struct + func (_e *DiscussionRepository_Expecter) Create(ctx interface{}, ns interface{}, _a2 interface{}) *DiscussionRepository_Create_Call + func (_e *DiscussionRepository_Expecter) CreateComment(ctx interface{}, ns interface{}, cmt interface{}) *DiscussionRepository_CreateComment_Call + func (_e *DiscussionRepository_Expecter) DeleteComment(ctx interface{}, commentID interface{}, discussionID interface{}) *DiscussionRepository_DeleteComment_Call + func (_e *DiscussionRepository_Expecter) Get(ctx interface{}, did interface{}) *DiscussionRepository_Get_Call + func (_e *DiscussionRepository_Expecter) GetAll(ctx interface{}, filter interface{}) *DiscussionRepository_GetAll_Call + func (_e *DiscussionRepository_Expecter) GetAllComments(ctx interface{}, discussionID interface{}, filter interface{}) *DiscussionRepository_GetAllComments_Call + func (_e *DiscussionRepository_Expecter) GetComment(ctx interface{}, commentID interface{}, discussionID interface{}) *DiscussionRepository_GetComment_Call + func (_e *DiscussionRepository_Expecter) Patch(ctx interface{}, _a1 interface{}) *DiscussionRepository_Patch_Call + func (_e *DiscussionRepository_Expecter) UpdateComment(ctx interface{}, cmt interface{}) *DiscussionRepository_UpdateComment_Call + type DiscussionRepository_GetAllComments_Call struct + func (_c *DiscussionRepository_GetAllComments_Call) Return(_a0 []discussion.Comment, _a1 error) *DiscussionRepository_GetAllComments_Call + func (_c *DiscussionRepository_GetAllComments_Call) Run(run func(ctx context.Context, discussionID string, filter discussion.Filter)) *DiscussionRepository_GetAllComments_Call + func (_c *DiscussionRepository_GetAllComments_Call) RunAndReturn(...) *DiscussionRepository_GetAllComments_Call + type DiscussionRepository_GetAll_Call struct + func (_c *DiscussionRepository_GetAll_Call) Return(_a0 []discussion.Discussion, _a1 error) *DiscussionRepository_GetAll_Call + func (_c *DiscussionRepository_GetAll_Call) Run(run func(ctx context.Context, filter discussion.Filter)) *DiscussionRepository_GetAll_Call + func (_c *DiscussionRepository_GetAll_Call) RunAndReturn(run func(context.Context, discussion.Filter) ([]discussion.Discussion, error)) *DiscussionRepository_GetAll_Call + type DiscussionRepository_GetComment_Call struct + func (_c *DiscussionRepository_GetComment_Call) Return(_a0 discussion.Comment, _a1 error) *DiscussionRepository_GetComment_Call + func (_c *DiscussionRepository_GetComment_Call) Run(run func(ctx context.Context, commentID string, discussionID string)) *DiscussionRepository_GetComment_Call + func (_c *DiscussionRepository_GetComment_Call) RunAndReturn(run func(context.Context, string, string) (discussion.Comment, error)) *DiscussionRepository_GetComment_Call + type DiscussionRepository_Get_Call struct + func (_c *DiscussionRepository_Get_Call) Return(_a0 discussion.Discussion, _a1 error) *DiscussionRepository_Get_Call + func (_c *DiscussionRepository_Get_Call) Run(run func(ctx context.Context, did string)) *DiscussionRepository_Get_Call + func (_c *DiscussionRepository_Get_Call) RunAndReturn(run func(context.Context, string) (discussion.Discussion, error)) *DiscussionRepository_Get_Call + type DiscussionRepository_Patch_Call struct + func (_c *DiscussionRepository_Patch_Call) Return(_a0 error) *DiscussionRepository_Patch_Call + func (_c *DiscussionRepository_Patch_Call) Run(run func(ctx context.Context, _a1 *discussion.Discussion)) *DiscussionRepository_Patch_Call + func (_c *DiscussionRepository_Patch_Call) RunAndReturn(run func(context.Context, *discussion.Discussion) error) *DiscussionRepository_Patch_Call + type DiscussionRepository_UpdateComment_Call struct + func (_c *DiscussionRepository_UpdateComment_Call) Return(_a0 error) *DiscussionRepository_UpdateComment_Call + func (_c *DiscussionRepository_UpdateComment_Call) Run(run func(ctx context.Context, cmt *discussion.Comment)) *DiscussionRepository_UpdateComment_Call + func (_c *DiscussionRepository_UpdateComment_Call) RunAndReturn(run func(context.Context, *discussion.Comment) error) *DiscussionRepository_UpdateComment_Call