blogservice

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blog

type Blog = blog.Blog

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 Count

type Count = blog.Count

type GetBlogUserInfosReq

type GetBlogUserInfosReq = blog.GetBlogUserInfosReq

type GetByUrlReq

type GetByUrlReq = blog.GetByUrlReq

type GetPageViewsReq

type GetPageViewsReq = blog.GetPageViewsReq

type GetReq

type GetReq = blog.GetReq

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

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.

type PageViews

type PageViews = blog.PageViews

type Pages

type Pages = blog.Pages

type Posts

type Posts = blog.Posts

Jump to

Keyboard shortcuts

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