Documentation ¶
Overview ¶
Package blogservice is a generated GoMock package.
Index ¶
- type Blog
- type BlogService
- type BlogUserInfo
- type BlogUserInfos
- type Count
- type GetBlogUserInfosReq
- type GetByUrlReq
- type GetPageViewsReq
- type GetReq
- type ListByUserReq
- type ListByUserResp
- type MockBlogService
- func (m *MockBlogService) EXPECT() *MockBlogServiceMockRecorder
- func (m *MockBlogService) Get(ctx context.Context, in *GetReq, opts ...grpc.CallOption) (*Blog, error)
- func (m *MockBlogService) GetBlogUserInfos(ctx context.Context, in *GetBlogUserInfosReq, opts ...grpc.CallOption) (*BlogUserInfos, error)
- func (m *MockBlogService) GetByUrl(ctx context.Context, in *GetByUrlReq, opts ...grpc.CallOption) (*Blog, error)
- func (m *MockBlogService) GetPageViews(ctx context.Context, in *GetPageViewsReq, opts ...grpc.CallOption) (*PageViews, error)
- func (m *MockBlogService) ListByUser(ctx context.Context, in *ListByUserReq, opts ...grpc.CallOption) (*ListByUserResp, error)
- type MockBlogServiceMockRecorder
- func (mr *MockBlogServiceMockRecorder) Get(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockBlogServiceMockRecorder) GetBlogUserInfos(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockBlogServiceMockRecorder) GetByUrl(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockBlogServiceMockRecorder) GetPageViews(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockBlogServiceMockRecorder) ListByUser(ctx, in any, opts ...any) *gomock.Call
- type PageViews
- type Pages
- type Posts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlogService ¶
type BlogService interface { Get(ctx context.Context, in *GetReq, opts ...grpc.CallOption) (*Blog, error) GetByUrl(ctx context.Context, in *GetByUrlReq, opts ...grpc.CallOption) (*Blog, error) ListByUser(ctx context.Context, in *ListByUserReq, opts ...grpc.CallOption) (*ListByUserResp, error) GetBlogUserInfos(ctx context.Context, in *GetBlogUserInfosReq, opts ...grpc.CallOption) (*BlogUserInfos, error) GetPageViews(ctx context.Context, in *GetPageViewsReq, opts ...grpc.CallOption) (*PageViews, error) }
func NewBlogService ¶
func NewBlogService(cli zrpc.Client) BlogService
type BlogUserInfo ¶
type BlogUserInfo = blog.BlogUserInfo
type BlogUserInfos ¶
type BlogUserInfos = blog.BlogUserInfos
type GetBlogUserInfosReq ¶
type GetBlogUserInfosReq = blog.GetBlogUserInfosReq
type GetByUrlReq ¶
type GetByUrlReq = blog.GetByUrlReq
type GetPageViewsReq ¶
type GetPageViewsReq = blog.GetPageViewsReq
type ListByUserReq ¶
type ListByUserReq = blog.ListByUserReq
type ListByUserResp ¶
type ListByUserResp = blog.ListByUserResp
type MockBlogService ¶
type MockBlogService struct {
// contains filtered or unexported fields
}
MockBlogService is a mock of BlogService interface.
func NewMockBlogService ¶
func NewMockBlogService(ctrl *gomock.Controller) *MockBlogService
NewMockBlogService creates a new mock instance.
func (*MockBlogService) EXPECT ¶
func (m *MockBlogService) EXPECT() *MockBlogServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBlogService) Get ¶
func (m *MockBlogService) Get(ctx context.Context, in *GetReq, opts ...grpc.CallOption) (*Blog, error)
Get mocks base method.
func (*MockBlogService) GetBlogUserInfos ¶
func (m *MockBlogService) GetBlogUserInfos(ctx context.Context, in *GetBlogUserInfosReq, opts ...grpc.CallOption) (*BlogUserInfos, error)
GetBlogUserInfos mocks base method.
func (*MockBlogService) GetByUrl ¶
func (m *MockBlogService) GetByUrl(ctx context.Context, in *GetByUrlReq, opts ...grpc.CallOption) (*Blog, error)
GetByUrl mocks base method.
func (*MockBlogService) GetPageViews ¶
func (m *MockBlogService) GetPageViews(ctx context.Context, in *GetPageViewsReq, opts ...grpc.CallOption) (*PageViews, error)
GetPageViews mocks base method.
func (*MockBlogService) ListByUser ¶
func (m *MockBlogService) ListByUser(ctx context.Context, in *ListByUserReq, opts ...grpc.CallOption) (*ListByUserResp, error)
ListByUser mocks base method.
type MockBlogServiceMockRecorder ¶
type MockBlogServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockBlogServiceMockRecorder is the mock recorder for MockBlogService.
func (*MockBlogServiceMockRecorder) Get ¶
func (mr *MockBlogServiceMockRecorder) Get(ctx, in any, opts ...any) *gomock.Call
Get indicates an expected call of Get.
func (*MockBlogServiceMockRecorder) GetBlogUserInfos ¶
func (mr *MockBlogServiceMockRecorder) GetBlogUserInfos(ctx, in any, opts ...any) *gomock.Call
GetBlogUserInfos indicates an expected call of GetBlogUserInfos.
func (*MockBlogServiceMockRecorder) GetByUrl ¶
func (mr *MockBlogServiceMockRecorder) GetByUrl(ctx, in any, opts ...any) *gomock.Call
GetByUrl indicates an expected call of GetByUrl.
func (*MockBlogServiceMockRecorder) GetPageViews ¶
func (mr *MockBlogServiceMockRecorder) GetPageViews(ctx, in any, opts ...any) *gomock.Call
GetPageViews indicates an expected call of GetPageViews.
func (*MockBlogServiceMockRecorder) ListByUser ¶
func (mr *MockBlogServiceMockRecorder) ListByUser(ctx, in any, opts ...any) *gomock.Call
ListByUser indicates an expected call of ListByUser.