post

package
v0.0.0-...-49bf833 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package post is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockPostBiz

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

MockPostBiz is a mock of PostBiz interface.

func NewMockPostBiz

func NewMockPostBiz(ctrl *gomock.Controller) *MockPostBiz

NewMockPostBiz creates a new mock instance.

func (*MockPostBiz) Create

func (m *MockPostBiz) Create(arg0 context.Context, arg1 string, arg2 *v1.CreatePostRequest) (*v1.CreatePostResponse, error)

Create mocks base method.

func (*MockPostBiz) Delete

func (m *MockPostBiz) Delete(arg0 context.Context, arg1, arg2 string) error

Delete mocks base method.

func (*MockPostBiz) DeleteCollection

func (m *MockPostBiz) DeleteCollection(arg0 context.Context, arg1 string, arg2 []string) error

DeleteCollection mocks base method.

func (*MockPostBiz) EXPECT

func (m *MockPostBiz) EXPECT() *MockPostBizMockRecorder

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

func (*MockPostBiz) Get

func (m *MockPostBiz) Get(arg0 context.Context, arg1, arg2 string) (*v1.GetPostResponse, error)

Get mocks base method.

func (*MockPostBiz) List

func (m *MockPostBiz) List(arg0 context.Context, arg1 string, arg2, arg3 int) (*v1.ListPostsResponse, error)

List mocks base method.

func (*MockPostBiz) Update

func (m *MockPostBiz) Update(arg0 context.Context, arg1, arg2 string, arg3 *v1.UpdatePostRequest) error

Update mocks base method.

type MockPostBizMockRecorder

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

MockPostBizMockRecorder is the mock recorder for MockPostBiz.

func (*MockPostBizMockRecorder) Create

func (mr *MockPostBizMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockPostBizMockRecorder) Delete

func (mr *MockPostBizMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockPostBizMockRecorder) DeleteCollection

func (mr *MockPostBizMockRecorder) DeleteCollection(arg0, arg1, arg2 interface{}) *gomock.Call

DeleteCollection indicates an expected call of DeleteCollection.

func (*MockPostBizMockRecorder) Get

func (mr *MockPostBizMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockPostBizMockRecorder) List

func (mr *MockPostBizMockRecorder) List(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

List indicates an expected call of List.

func (*MockPostBizMockRecorder) Update

func (mr *MockPostBizMockRecorder) Update(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

Update indicates an expected call of Update.

type PostBiz

type PostBiz interface {
	Create(ctx context.Context, username string, r *v1.CreatePostRequest) (*v1.CreatePostResponse, error)
	Update(ctx context.Context, username, postID string, r *v1.UpdatePostRequest) error
	Delete(ctx context.Context, username, postID string) error
	DeleteCollection(ctx context.Context, username string, postIDs []string) error
	Get(ctx context.Context, username, postID string) (*v1.GetPostResponse, error)
	List(ctx context.Context, username string, offset, limit int) (*v1.ListPostsResponse, error)
}

PostBiz defines the methods implemented in the post-module at the biz layer

func NewPostBiz

func NewPostBiz(ds store.IStore) PostBiz

Jump to

Keyboard shortcuts

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