Documentation
¶
Overview ¶
Package post is a generated GoMock package.
Index ¶
- func New(ds store.IStore) *postBiz
- type MockPostBiz
- func (m *MockPostBiz) Create(arg0 context.Context, arg1 string, arg2 *v1.CreatePostRequest) (*v1.CreatePostResponse, error)
- func (m *MockPostBiz) Delete(arg0 context.Context, arg1, arg2 string) error
- func (m *MockPostBiz) DeleteCollection(arg0 context.Context, arg1 string, arg2 []string) error
- func (m *MockPostBiz) EXPECT() *MockPostBizMockRecorder
- func (m *MockPostBiz) Get(arg0 context.Context, arg1, arg2 string) (*v1.GetPostResponse, error)
- func (m *MockPostBiz) List(arg0 context.Context, arg1 string, arg2, arg3 int) (*v1.ListPostResponse, error)
- func (m *MockPostBiz) Update(arg0 context.Context, arg1, arg2 string, arg3 *v1.UpdatePostRequest) error
- type MockPostBizMockRecorder
- func (mr *MockPostBizMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockPostBizMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockPostBizMockRecorder) DeleteCollection(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockPostBizMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockPostBizMockRecorder) List(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockPostBizMockRecorder) Update(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- type PostBiz
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
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.ListPostResponse, 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.ListPostResponse, error) }
PostBiz defines functions used to handle post request.