postservice

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 postservice is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Author

type Author = post.Author

type Blog

type Blog = post.Blog

type Comment

type Comment = post.Comment

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 DeleteReq

type DeleteReq = post.DeleteReq

type EmptyResp

type EmptyResp = post.EmptyResp

type GetByPathReq

type GetByPathReq = post.GetByPathReq

type GetPostUserInfosReq

type GetPostUserInfosReq = post.GetPostUserInfosReq

type GetReq

type GetReq = post.GetReq

type Image

type Image = post.Image

type InsertReq

type InsertReq = post.InsertReq

type ListPostUserInfosReq

type ListPostUserInfosReq = post.ListPostUserInfosReq

type ListPostUserInfosResp

type ListPostUserInfosResp = post.ListPostUserInfosResp

type ListReq

type ListReq = post.ListReq

type ListResp

type ListResp = post.ListResp

type Location

type Location = post.Location

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

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.

func (*MockPostServiceMockRecorder) Search

func (mr *MockPostServiceMockRecorder) Search(ctx, in any, opts ...any) *gomock.Call

Search indicates an expected call of Search.

func (*MockPostServiceMockRecorder) Update

func (mr *MockPostServiceMockRecorder) Update(ctx, in any, opts ...any) *gomock.Call

Update indicates an expected call of Update.

type PatchReq

type PatchReq = post.PatchReq

type Post

type Post = post.Post

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 Reply

type Reply = post.Reply

type RevertReq

type RevertReq = post.RevertReq

type SearchReq

type SearchReq = post.SearchReq

type SearchResp

type SearchResp = post.SearchResp

type UpdateReq

type UpdateReq = post.UpdateReq

Jump to

Keyboard shortcuts

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