Documentation ¶
Overview ¶
Package mapper is a generated GoMock package.
Index ¶
- type MockMockRuleMapper
- func (m *MockMockRuleMapper) Create(arg0 *model.MockRuleEntity) error
- func (m *MockMockRuleMapper) DeleteById(arg0 int64) error
- func (m *MockMockRuleMapper) EXPECT() *MockMockRuleMapperMockRecorder
- func (m *MockMockRuleMapper) FindByPage(arg0 string, arg1, arg2 int) ([]*model.MockRuleEntity, int64, error)
- func (m *MockMockRuleMapper) FindByServiceNameAndMethodName(arg0 context.Context, arg1, arg2 string) (*model.MockRuleEntity, error)
- func (m *MockMockRuleMapper) Update(arg0 *model.MockRuleEntity) error
- type MockMockRuleMapperMockRecorder
- func (mr *MockMockRuleMapperMockRecorder) Create(arg0 interface{}) *gomock.Call
- func (mr *MockMockRuleMapperMockRecorder) DeleteById(arg0 interface{}) *gomock.Call
- func (mr *MockMockRuleMapperMockRecorder) FindByPage(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockMockRuleMapperMockRecorder) FindByServiceNameAndMethodName(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockMockRuleMapperMockRecorder) Update(arg0 interface{}) *gomock.Call
- type MockRuleMapper
- type MockRuleMapperImpl
- func (m *MockRuleMapperImpl) Create(mockRule *model.MockRuleEntity) error
- func (m *MockRuleMapperImpl) DeleteById(id int64) error
- func (m *MockRuleMapperImpl) FindByPage(filter string, offset, limit int) ([]*model.MockRuleEntity, int64, error)
- func (m *MockRuleMapperImpl) FindByServiceNameAndMethodName(ctx context.Context, serviceName, methodName string) (*model.MockRuleEntity, error)
- func (m *MockRuleMapperImpl) Update(mockRule *model.MockRuleEntity) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockMockRuleMapper ¶
type MockMockRuleMapper struct {
// contains filtered or unexported fields
}
MockMockRuleMapper is a mock of MockRuleMapper interface.
func NewMockMockRuleMapper ¶
func NewMockMockRuleMapper(ctrl *gomock.Controller) *MockMockRuleMapper
NewMockMockRuleMapper creates a new mock instance.
func (*MockMockRuleMapper) Create ¶
func (m *MockMockRuleMapper) Create(arg0 *model.MockRuleEntity) error
Create mocks base method.
func (*MockMockRuleMapper) DeleteById ¶
func (m *MockMockRuleMapper) DeleteById(arg0 int64) error
DeleteById mocks base method.
func (*MockMockRuleMapper) EXPECT ¶
func (m *MockMockRuleMapper) EXPECT() *MockMockRuleMapperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMockRuleMapper) FindByPage ¶
func (m *MockMockRuleMapper) FindByPage(arg0 string, arg1, arg2 int) ([]*model.MockRuleEntity, int64, error)
FindByPage mocks base method.
func (*MockMockRuleMapper) FindByServiceNameAndMethodName ¶
func (m *MockMockRuleMapper) FindByServiceNameAndMethodName(arg0 context.Context, arg1, arg2 string) (*model.MockRuleEntity, error)
FindByServiceNameAndMethodName mocks base method.
func (*MockMockRuleMapper) Update ¶
func (m *MockMockRuleMapper) Update(arg0 *model.MockRuleEntity) error
Update mocks base method.
type MockMockRuleMapperMockRecorder ¶
type MockMockRuleMapperMockRecorder struct {
// contains filtered or unexported fields
}
MockMockRuleMapperMockRecorder is the mock recorder for MockMockRuleMapper.
func (*MockMockRuleMapperMockRecorder) Create ¶
func (mr *MockMockRuleMapperMockRecorder) Create(arg0 interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockMockRuleMapperMockRecorder) DeleteById ¶
func (mr *MockMockRuleMapperMockRecorder) DeleteById(arg0 interface{}) *gomock.Call
DeleteById indicates an expected call of DeleteById.
func (*MockMockRuleMapperMockRecorder) FindByPage ¶
func (mr *MockMockRuleMapperMockRecorder) FindByPage(arg0, arg1, arg2 interface{}) *gomock.Call
FindByPage indicates an expected call of FindByPage.
func (*MockMockRuleMapperMockRecorder) FindByServiceNameAndMethodName ¶
func (mr *MockMockRuleMapperMockRecorder) FindByServiceNameAndMethodName(arg0, arg1, arg2 interface{}) *gomock.Call
FindByServiceNameAndMethodName indicates an expected call of FindByServiceNameAndMethodName.
func (*MockMockRuleMapperMockRecorder) Update ¶
func (mr *MockMockRuleMapperMockRecorder) Update(arg0 interface{}) *gomock.Call
Update indicates an expected call of Update.
type MockRuleMapper ¶
type MockRuleMapper interface { Create(mockRule *model.MockRuleEntity) error Update(mockRule *model.MockRuleEntity) error DeleteById(id int64) error FindByServiceNameAndMethodName(ctx context.Context, serviceName, methodName string) (*model.MockRuleEntity, error) FindByPage(filter string, offset, limit int) ([]*model.MockRuleEntity, int64, error) }
type MockRuleMapperImpl ¶
type MockRuleMapperImpl struct{}
func (*MockRuleMapperImpl) Create ¶
func (m *MockRuleMapperImpl) Create(mockRule *model.MockRuleEntity) error
func (*MockRuleMapperImpl) DeleteById ¶
func (m *MockRuleMapperImpl) DeleteById(id int64) error
func (*MockRuleMapperImpl) FindByPage ¶
func (m *MockRuleMapperImpl) FindByPage(filter string, offset, limit int) ([]*model.MockRuleEntity, int64, error)
func (*MockRuleMapperImpl) FindByServiceNameAndMethodName ¶
func (m *MockRuleMapperImpl) FindByServiceNameAndMethodName(ctx context.Context, serviceName, methodName string) (*model.MockRuleEntity, error)
func (*MockRuleMapperImpl) Update ¶
func (m *MockRuleMapperImpl) Update(mockRule *model.MockRuleEntity) error