Documentation ¶
Overview ¶
Package pageservice is a generated GoMock package.
Index ¶
- type Author
- type Blog
- type DeleteReq
- type EmptyResp
- type GetReq
- type Image
- type InsertReq
- type ListReq
- type ListResp
- type MockPageService
- func (m *MockPageService) Delete(ctx context.Context, in *DeleteReq, opts ...grpc.CallOption) (*EmptyResp, error)
- func (m *MockPageService) EXPECT() *MockPageServiceMockRecorder
- func (m *MockPageService) Get(ctx context.Context, in *GetReq, opts ...grpc.CallOption) (*Page, error)
- func (m *MockPageService) Insert(ctx context.Context, in *InsertReq, opts ...grpc.CallOption) (*Page, error)
- func (m *MockPageService) List(ctx context.Context, in *ListReq, opts ...grpc.CallOption) (*ListResp, error)
- func (m *MockPageService) Patch(ctx context.Context, in *PatchReq, opts ...grpc.CallOption) (*Page, error)
- func (m *MockPageService) Update(ctx context.Context, in *UpdateReq, opts ...grpc.CallOption) (*Page, error)
- type MockPageServiceMockRecorder
- func (mr *MockPageServiceMockRecorder) Delete(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockPageServiceMockRecorder) Get(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockPageServiceMockRecorder) Insert(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockPageServiceMockRecorder) List(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockPageServiceMockRecorder) Patch(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockPageServiceMockRecorder) Update(ctx, in any, opts ...any) *gomock.Call
- type Page
- type PageService
- type PatchReq
- type UpdateReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 ¶
func (m *MockPageService) EXPECT() *MockPageServiceMockRecorder
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.
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
Click to show internal directories.
Click to hide internal directories.