commentservice

package
v0.0.0-...-29acfd5 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package commentservice is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApproveReq

type ApproveReq = comment.ApproveReq

type Author

type Author = comment.Author

type Blog

type Blog = comment.Blog

type Comment

type Comment = comment.Comment

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 DeleteReq

type DeleteReq = comment.DeleteReq

type EmptyResp

type EmptyResp = comment.EmptyResp

type GetReq

type GetReq = comment.GetReq

type Image

type Image = comment.Image

type InReplyTo

type InReplyTo = comment.InReplyTo

type ListByBlogReq

type ListByBlogReq = comment.ListByBlogReq

type ListByBlogResp

type ListByBlogResp = comment.ListByBlogResp

type ListReq

type ListReq = comment.ListReq

type ListResp

type ListResp = comment.ListResp

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

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 Post

type Post = comment.Post

type RemoveContentReq

type RemoveContentReq = comment.RemoveContentReq

Jump to

Keyboard shortcuts

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