Documentation ¶
Overview ¶
Package postservice is a generated GoMock package.
Index ¶
- type Author
- type Blog
- type Comment
- type Comment_Blog
- type Comment_InReplyTo
- type Comment_Post
- type DeleteReq
- type EmptyResp
- type GetByPathReq
- type GetPostUserInfosReq
- type GetReq
- type Image
- type InsertReq
- type ListPostUserInfosReq
- type ListPostUserInfosResp
- type ListReq
- type ListResp
- type Location
- type MockPostService
- func (m *MockPostService) Delete(ctx context.Context, in *DeleteReq, opts ...grpc.CallOption) (*EmptyResp, error)
- func (m *MockPostService) EXPECT() *MockPostServiceMockRecorder
- func (m *MockPostService) Get(ctx context.Context, in *GetReq, opts ...grpc.CallOption) (*Post, error)
- func (m *MockPostService) GetByPath(ctx context.Context, in *GetByPathReq, opts ...grpc.CallOption) (*Post, error)
- func (m *MockPostService) GetPostUserInfos(ctx context.Context, in *GetPostUserInfosReq, opts ...grpc.CallOption) (*PostUserInfos, error)
- func (m *MockPostService) Insert(ctx context.Context, in *InsertReq, opts ...grpc.CallOption) (*Post, error)
- func (m *MockPostService) List(ctx context.Context, in *ListReq, opts ...grpc.CallOption) (*ListResp, error)
- func (m *MockPostService) ListPostUserInfos(ctx context.Context, in *ListPostUserInfosReq, opts ...grpc.CallOption) (*ListPostUserInfosResp, error)
- func (m *MockPostService) Patch(ctx context.Context, in *PatchReq, opts ...grpc.CallOption) (*Post, error)
- func (m *MockPostService) Publish(ctx context.Context, in *PublishReq, opts ...grpc.CallOption) (*Post, error)
- func (m *MockPostService) Revert(ctx context.Context, in *RevertReq, opts ...grpc.CallOption) (*Post, error)
- func (m *MockPostService) Search(ctx context.Context, in *SearchReq, opts ...grpc.CallOption) (*SearchResp, error)
- func (m *MockPostService) Update(ctx context.Context, in *UpdateReq, opts ...grpc.CallOption) (*Post, error)
- type MockPostServiceMockRecorder
- func (mr *MockPostServiceMockRecorder) Delete(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockPostServiceMockRecorder) Get(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockPostServiceMockRecorder) GetByPath(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockPostServiceMockRecorder) GetPostUserInfos(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockPostServiceMockRecorder) Insert(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockPostServiceMockRecorder) List(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockPostServiceMockRecorder) ListPostUserInfos(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockPostServiceMockRecorder) Patch(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockPostServiceMockRecorder) Publish(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockPostServiceMockRecorder) Revert(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockPostServiceMockRecorder) Search(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockPostServiceMockRecorder) Update(ctx, in any, opts ...any) *gomock.Call
- type PatchReq
- type Post
- type PostService
- type PostUserInfo
- type PostUserInfos
- type PublishReq
- type Reply
- type RevertReq
- type SearchReq
- type SearchResp
- type UpdateReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Comment_Blog ¶
type Comment_Blog = post.Comment_Blog
type Comment_InReplyTo ¶
type Comment_InReplyTo = post.Comment_InReplyTo
type Comment_Post ¶
type Comment_Post = post.Comment_Post
type GetByPathReq ¶
type GetByPathReq = post.GetByPathReq
type GetPostUserInfosReq ¶
type GetPostUserInfosReq = post.GetPostUserInfosReq
type ListPostUserInfosReq ¶
type ListPostUserInfosReq = post.ListPostUserInfosReq
type ListPostUserInfosResp ¶
type ListPostUserInfosResp = post.ListPostUserInfosResp
type MockPostService ¶
type MockPostService struct {
// contains filtered or unexported fields
}
MockPostService is a mock of PostService interface.
func NewMockPostService ¶
func NewMockPostService(ctrl *gomock.Controller) *MockPostService
NewMockPostService creates a new mock instance.
func (*MockPostService) Delete ¶
func (m *MockPostService) Delete(ctx context.Context, in *DeleteReq, opts ...grpc.CallOption) (*EmptyResp, error)
Delete mocks base method.
func (*MockPostService) EXPECT ¶
func (m *MockPostService) EXPECT() *MockPostServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPostService) Get ¶
func (m *MockPostService) Get(ctx context.Context, in *GetReq, opts ...grpc.CallOption) (*Post, error)
Get mocks base method.
func (*MockPostService) GetByPath ¶
func (m *MockPostService) GetByPath(ctx context.Context, in *GetByPathReq, opts ...grpc.CallOption) (*Post, error)
GetByPath mocks base method.
func (*MockPostService) GetPostUserInfos ¶
func (m *MockPostService) GetPostUserInfos(ctx context.Context, in *GetPostUserInfosReq, opts ...grpc.CallOption) (*PostUserInfos, error)
GetPostUserInfos mocks base method.
func (*MockPostService) Insert ¶
func (m *MockPostService) Insert(ctx context.Context, in *InsertReq, opts ...grpc.CallOption) (*Post, error)
Insert mocks base method.
func (*MockPostService) List ¶
func (m *MockPostService) List(ctx context.Context, in *ListReq, opts ...grpc.CallOption) (*ListResp, error)
List mocks base method.
func (*MockPostService) ListPostUserInfos ¶
func (m *MockPostService) ListPostUserInfos(ctx context.Context, in *ListPostUserInfosReq, opts ...grpc.CallOption) (*ListPostUserInfosResp, error)
ListPostUserInfos mocks base method.
func (*MockPostService) Patch ¶
func (m *MockPostService) Patch(ctx context.Context, in *PatchReq, opts ...grpc.CallOption) (*Post, error)
Patch mocks base method.
func (*MockPostService) Publish ¶
func (m *MockPostService) Publish(ctx context.Context, in *PublishReq, opts ...grpc.CallOption) (*Post, error)
Publish mocks base method.
func (*MockPostService) Revert ¶
func (m *MockPostService) Revert(ctx context.Context, in *RevertReq, opts ...grpc.CallOption) (*Post, error)
Revert mocks base method.
func (*MockPostService) Search ¶
func (m *MockPostService) Search(ctx context.Context, in *SearchReq, opts ...grpc.CallOption) (*SearchResp, error)
Search mocks base method.
func (*MockPostService) Update ¶
func (m *MockPostService) Update(ctx context.Context, in *UpdateReq, opts ...grpc.CallOption) (*Post, error)
Update mocks base method.
type MockPostServiceMockRecorder ¶
type MockPostServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockPostServiceMockRecorder is the mock recorder for MockPostService.
func (*MockPostServiceMockRecorder) Delete ¶
func (mr *MockPostServiceMockRecorder) Delete(ctx, in any, opts ...any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockPostServiceMockRecorder) Get ¶
func (mr *MockPostServiceMockRecorder) Get(ctx, in any, opts ...any) *gomock.Call
Get indicates an expected call of Get.
func (*MockPostServiceMockRecorder) GetByPath ¶
func (mr *MockPostServiceMockRecorder) GetByPath(ctx, in any, opts ...any) *gomock.Call
GetByPath indicates an expected call of GetByPath.
func (*MockPostServiceMockRecorder) GetPostUserInfos ¶
func (mr *MockPostServiceMockRecorder) GetPostUserInfos(ctx, in any, opts ...any) *gomock.Call
GetPostUserInfos indicates an expected call of GetPostUserInfos.
func (*MockPostServiceMockRecorder) Insert ¶
func (mr *MockPostServiceMockRecorder) Insert(ctx, in any, opts ...any) *gomock.Call
Insert indicates an expected call of Insert.
func (*MockPostServiceMockRecorder) List ¶
func (mr *MockPostServiceMockRecorder) List(ctx, in any, opts ...any) *gomock.Call
List indicates an expected call of List.
func (*MockPostServiceMockRecorder) ListPostUserInfos ¶
func (mr *MockPostServiceMockRecorder) ListPostUserInfos(ctx, in any, opts ...any) *gomock.Call
ListPostUserInfos indicates an expected call of ListPostUserInfos.
func (*MockPostServiceMockRecorder) Patch ¶
func (mr *MockPostServiceMockRecorder) Patch(ctx, in any, opts ...any) *gomock.Call
Patch indicates an expected call of Patch.
func (*MockPostServiceMockRecorder) Publish ¶
func (mr *MockPostServiceMockRecorder) Publish(ctx, in any, opts ...any) *gomock.Call
Publish indicates an expected call of Publish.
func (*MockPostServiceMockRecorder) Revert ¶
func (mr *MockPostServiceMockRecorder) Revert(ctx, in any, opts ...any) *gomock.Call
Revert indicates an expected call of Revert.
type PostService ¶
type PostService interface { List(ctx context.Context, in *ListReq, opts ...grpc.CallOption) (*ListResp, error) Get(ctx context.Context, in *GetReq, opts ...grpc.CallOption) (*Post, error) Search(ctx context.Context, in *SearchReq, opts ...grpc.CallOption) (*SearchResp, error) Insert(ctx context.Context, in *InsertReq, opts ...grpc.CallOption) (*Post, error) Delete(ctx context.Context, in *DeleteReq, opts ...grpc.CallOption) (*EmptyResp, error) GetByPath(ctx context.Context, in *GetByPathReq, opts ...grpc.CallOption) (*Post, error) Patch(ctx context.Context, in *PatchReq, opts ...grpc.CallOption) (*Post, error) Update(ctx context.Context, in *UpdateReq, opts ...grpc.CallOption) (*Post, error) Publish(ctx context.Context, in *PublishReq, opts ...grpc.CallOption) (*Post, error) Revert(ctx context.Context, in *RevertReq, opts ...grpc.CallOption) (*Post, error) GetPostUserInfos(ctx context.Context, in *GetPostUserInfosReq, opts ...grpc.CallOption) (*PostUserInfos, error) ListPostUserInfos(ctx context.Context, in *ListPostUserInfosReq, opts ...grpc.CallOption) (*ListPostUserInfosResp, error) }
func NewPostService ¶
func NewPostService(cli zrpc.Client) PostService
type PostUserInfo ¶
type PostUserInfo = post.PostUserInfo
type PostUserInfos ¶
type PostUserInfos = post.PostUserInfos
type PublishReq ¶
type PublishReq = post.PublishReq
type SearchResp ¶
type SearchResp = post.SearchResp