Documentation
¶
Overview ¶
Package commentservice is a generated GoMock package.
Index ¶
- type ApproveReq
- type Author
- type Blog
- type Comment
- type CommentService
- type DeleteReq
- type EmptyResp
- type GetReq
- type Image
- type InReplyTo
- type ListByBlogReq
- type ListByBlogResp
- type ListReq
- type ListResp
- type MarkAsSpamReq
- type MockCommentService
- func (m *MockCommentService) Approve(ctx context.Context, in *ApproveReq, opts ...grpc.CallOption) (*Comment, error)
- func (m *MockCommentService) Delete(ctx context.Context, in *DeleteReq, opts ...grpc.CallOption) (*EmptyResp, error)
- func (m *MockCommentService) EXPECT() *MockCommentServiceMockRecorder
- func (m *MockCommentService) Get(ctx context.Context, in *GetReq, opts ...grpc.CallOption) (*Comment, error)
- func (m *MockCommentService) List(ctx context.Context, in *ListReq, opts ...grpc.CallOption) (*ListResp, error)
- func (m *MockCommentService) ListByBlog(ctx context.Context, in *ListByBlogReq, opts ...grpc.CallOption) (*ListByBlogResp, error)
- func (m *MockCommentService) MarkAsSpam(ctx context.Context, in *MarkAsSpamReq, opts ...grpc.CallOption) (*Comment, error)
- func (m *MockCommentService) RemoveContent(ctx context.Context, in *RemoveContentReq, opts ...grpc.CallOption) (*Comment, error)
- type MockCommentServiceMockRecorder
- func (mr *MockCommentServiceMockRecorder) Approve(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockCommentServiceMockRecorder) Delete(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockCommentServiceMockRecorder) Get(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockCommentServiceMockRecorder) List(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockCommentServiceMockRecorder) ListByBlog(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockCommentServiceMockRecorder) MarkAsSpam(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockCommentServiceMockRecorder) RemoveContent(ctx, in any, opts ...any) *gomock.Call
- type Post
- type RemoveContentReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApproveReq ¶
type ApproveReq = comment.ApproveReq
type CommentService ¶
type CommentService interface { List(ctx context.Context, in *ListReq, opts ...grpc.CallOption) (*ListResp, error) Get(ctx context.Context, in *GetReq, opts ...grpc.CallOption) (*Comment, error) Approve(ctx context.Context, in *ApproveReq, opts ...grpc.CallOption) (*Comment, error) Delete(ctx context.Context, in *DeleteReq, opts ...grpc.CallOption) (*EmptyResp, error) ListByBlog(ctx context.Context, in *ListByBlogReq, opts ...grpc.CallOption) (*ListByBlogResp, error) MarkAsSpam(ctx context.Context, in *MarkAsSpamReq, opts ...grpc.CallOption) (*Comment, error) RemoveContent(ctx context.Context, in *RemoveContentReq, opts ...grpc.CallOption) (*Comment, error) }
func NewCommentService ¶
func NewCommentService(cli zrpc.Client) CommentService
type ListByBlogReq ¶
type ListByBlogReq = comment.ListByBlogReq
type ListByBlogResp ¶
type ListByBlogResp = comment.ListByBlogResp
type MarkAsSpamReq ¶
type MarkAsSpamReq = comment.MarkAsSpamReq
type MockCommentService ¶
type MockCommentService struct {
// contains filtered or unexported fields
}
MockCommentService is a mock of CommentService interface.
func NewMockCommentService ¶
func NewMockCommentService(ctrl *gomock.Controller) *MockCommentService
NewMockCommentService creates a new mock instance.
func (*MockCommentService) Approve ¶
func (m *MockCommentService) Approve(ctx context.Context, in *ApproveReq, opts ...grpc.CallOption) (*Comment, error)
Approve mocks base method.
func (*MockCommentService) Delete ¶
func (m *MockCommentService) Delete(ctx context.Context, in *DeleteReq, opts ...grpc.CallOption) (*EmptyResp, error)
Delete mocks base method.
func (*MockCommentService) EXPECT ¶
func (m *MockCommentService) EXPECT() *MockCommentServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCommentService) Get ¶
func (m *MockCommentService) Get(ctx context.Context, in *GetReq, opts ...grpc.CallOption) (*Comment, error)
Get mocks base method.
func (*MockCommentService) List ¶
func (m *MockCommentService) List(ctx context.Context, in *ListReq, opts ...grpc.CallOption) (*ListResp, error)
List mocks base method.
func (*MockCommentService) ListByBlog ¶
func (m *MockCommentService) ListByBlog(ctx context.Context, in *ListByBlogReq, opts ...grpc.CallOption) (*ListByBlogResp, error)
ListByBlog mocks base method.
func (*MockCommentService) MarkAsSpam ¶
func (m *MockCommentService) MarkAsSpam(ctx context.Context, in *MarkAsSpamReq, opts ...grpc.CallOption) (*Comment, error)
MarkAsSpam mocks base method.
func (*MockCommentService) RemoveContent ¶
func (m *MockCommentService) RemoveContent(ctx context.Context, in *RemoveContentReq, opts ...grpc.CallOption) (*Comment, error)
RemoveContent mocks base method.
type MockCommentServiceMockRecorder ¶
type MockCommentServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockCommentServiceMockRecorder is the mock recorder for MockCommentService.
func (*MockCommentServiceMockRecorder) Approve ¶
func (mr *MockCommentServiceMockRecorder) Approve(ctx, in any, opts ...any) *gomock.Call
Approve indicates an expected call of Approve.
func (*MockCommentServiceMockRecorder) Delete ¶
func (mr *MockCommentServiceMockRecorder) Delete(ctx, in any, opts ...any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockCommentServiceMockRecorder) Get ¶
func (mr *MockCommentServiceMockRecorder) Get(ctx, in any, opts ...any) *gomock.Call
Get indicates an expected call of Get.
func (*MockCommentServiceMockRecorder) List ¶
func (mr *MockCommentServiceMockRecorder) List(ctx, in any, opts ...any) *gomock.Call
List indicates an expected call of List.
func (*MockCommentServiceMockRecorder) ListByBlog ¶
func (mr *MockCommentServiceMockRecorder) ListByBlog(ctx, in any, opts ...any) *gomock.Call
ListByBlog indicates an expected call of ListByBlog.
func (*MockCommentServiceMockRecorder) MarkAsSpam ¶
func (mr *MockCommentServiceMockRecorder) MarkAsSpam(ctx, in any, opts ...any) *gomock.Call
MarkAsSpam indicates an expected call of MarkAsSpam.
func (*MockCommentServiceMockRecorder) RemoveContent ¶
func (mr *MockCommentServiceMockRecorder) RemoveContent(ctx, in any, opts ...any) *gomock.Call
RemoveContent indicates an expected call of RemoveContent.
type RemoveContentReq ¶
type RemoveContentReq = comment.RemoveContentReq