pageservice

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 pageservice 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 = page.Author

type Blog

type Blog = page.Blog

type DeleteReq

type DeleteReq = page.DeleteReq

type EmptyResp

type EmptyResp = page.EmptyResp

type GetReq

type GetReq = page.GetReq

type Image

type Image = page.Image

type InsertReq

type InsertReq = page.InsertReq

type ListReq

type ListReq = page.ListReq

type ListResp

type ListResp = page.ListResp

type MockPageService

type MockPageService struct {
	// contains filtered or unexported fields
}

MockPageService is a mock of PageService interface.

func NewMockPageService

func NewMockPageService(ctrl *gomock.Controller) *MockPageService

NewMockPageService creates a new mock instance.

func (*MockPageService) Delete

func (m *MockPageService) Delete(ctx context.Context, in *DeleteReq, opts ...grpc.CallOption) (*EmptyResp, error)

Delete mocks base method.

func (*MockPageService) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockPageService) Get

func (m *MockPageService) Get(ctx context.Context, in *GetReq, opts ...grpc.CallOption) (*Page, error)

Get mocks base method.

func (*MockPageService) Insert

func (m *MockPageService) Insert(ctx context.Context, in *InsertReq, opts ...grpc.CallOption) (*Page, error)

Insert mocks base method.

func (*MockPageService) List

func (m *MockPageService) List(ctx context.Context, in *ListReq, opts ...grpc.CallOption) (*ListResp, error)

List mocks base method.

func (*MockPageService) Patch

func (m *MockPageService) Patch(ctx context.Context, in *PatchReq, opts ...grpc.CallOption) (*Page, error)

Patch mocks base method.

func (*MockPageService) Update

func (m *MockPageService) Update(ctx context.Context, in *UpdateReq, opts ...grpc.CallOption) (*Page, error)

Update mocks base method.

type MockPageServiceMockRecorder

type MockPageServiceMockRecorder struct {
	// contains filtered or unexported fields
}

MockPageServiceMockRecorder is the mock recorder for MockPageService.

func (*MockPageServiceMockRecorder) Delete

func (mr *MockPageServiceMockRecorder) Delete(ctx, in any, opts ...any) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockPageServiceMockRecorder) Get

func (mr *MockPageServiceMockRecorder) Get(ctx, in any, opts ...any) *gomock.Call

Get indicates an expected call of Get.

func (*MockPageServiceMockRecorder) Insert

func (mr *MockPageServiceMockRecorder) Insert(ctx, in any, opts ...any) *gomock.Call

Insert indicates an expected call of Insert.

func (*MockPageServiceMockRecorder) List

func (mr *MockPageServiceMockRecorder) List(ctx, in any, opts ...any) *gomock.Call

List indicates an expected call of List.

func (*MockPageServiceMockRecorder) Patch

func (mr *MockPageServiceMockRecorder) Patch(ctx, in any, opts ...any) *gomock.Call

Patch indicates an expected call of Patch.

func (*MockPageServiceMockRecorder) Update

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

Update indicates an expected call of Update.

type Page

type Page = page.Page

type PageService

type PageService interface {
	List(ctx context.Context, in *ListReq, opts ...grpc.CallOption) (*ListResp, error)
	Get(ctx context.Context, in *GetReq, opts ...grpc.CallOption) (*Page, error)
	Delete(ctx context.Context, in *DeleteReq, opts ...grpc.CallOption) (*EmptyResp, error)
	Insert(ctx context.Context, in *InsertReq, opts ...grpc.CallOption) (*Page, error)
	Patch(ctx context.Context, in *PatchReq, opts ...grpc.CallOption) (*Page, error)
	Update(ctx context.Context, in *UpdateReq, opts ...grpc.CallOption) (*Page, error)
}

func NewPageService

func NewPageService(cli zrpc.Client) PageService

type PatchReq

type PatchReq = page.PatchReq

type UpdateReq

type UpdateReq = page.UpdateReq

Jump to

Keyboard shortcuts

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