Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Index ¶
- type MockRuleRepo
- func (m *MockRuleRepo) Delete(ctx context.Context, id int64) error
- func (m *MockRuleRepo) EXPECT() *MockRuleRepoMockRecorder
- func (m *MockRuleRepo) Find(ctx context.Context, id int64) (*repository.Rule, error)
- func (m *MockRuleRepo) Insert(ctx context.Context, rule repository.Rule) (int64, error)
- func (m *MockRuleRepo) List(ctx context.Context) ([]*repository.Rule, error)
- func (m *MockRuleRepo) Update(ctx context.Context, rule repository.Rule) error
- type MockRuleRepoMockRecorder
- func (mr *MockRuleRepoMockRecorder) Delete(ctx, id interface{}) *gomock.Call
- func (mr *MockRuleRepoMockRecorder) Find(ctx, id interface{}) *gomock.Call
- func (mr *MockRuleRepoMockRecorder) Insert(ctx, rule interface{}) *gomock.Call
- func (mr *MockRuleRepoMockRecorder) List(ctx interface{}) *gomock.Call
- func (mr *MockRuleRepoMockRecorder) Update(ctx, rule interface{}) *gomock.Call
- type MockRuleStoreService
- func (m *MockRuleStoreService) AddURL(id int, key string)
- func (m *MockRuleStoreService) DeleteURL(id int) bool
- func (m *MockRuleStoreService) EXPECT() *MockRuleStoreServiceMockRecorder
- func (m *MockRuleStoreService) GetURL(path string) (int, service.VarMap)
- func (m *MockRuleStoreService) UpdateURL(id int, key string)
- type MockRuleStoreServiceMockRecorder
- func (mr *MockRuleStoreServiceMockRecorder) AddURL(id, key interface{}) *gomock.Call
- func (mr *MockRuleStoreServiceMockRecorder) DeleteURL(id interface{}) *gomock.Call
- func (mr *MockRuleStoreServiceMockRecorder) GetURL(path interface{}) *gomock.Call
- func (mr *MockRuleStoreServiceMockRecorder) UpdateURL(id, key interface{}) *gomock.Call
- type MockURLStore
- func (m *MockURLStore) Add(id int, key string, data interface{}) int
- func (m *MockURLStore) Count() int
- func (m *MockURLStore) Delete(id int) bool
- func (m *MockURLStore) EXPECT() *MockURLStoreMockRecorder
- func (m *MockURLStore) Get(path string, pvalues []string) (interface{}, []string)
- func (m *MockURLStore) String() string
- type MockURLStoreMockRecorder
- func (mr *MockURLStoreMockRecorder) Add(id, key, data interface{}) *gomock.Call
- func (mr *MockURLStoreMockRecorder) Count() *gomock.Call
- func (mr *MockURLStoreMockRecorder) Delete(id interface{}) *gomock.Call
- func (mr *MockURLStoreMockRecorder) Get(path, pvalues interface{}) *gomock.Call
- func (mr *MockURLStoreMockRecorder) String() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRuleRepo ¶
type MockRuleRepo struct {
// contains filtered or unexported fields
}
MockRuleRepo is a mock of RuleRepo interface
func NewMockRuleRepo ¶
func NewMockRuleRepo(ctrl *gomock.Controller) *MockRuleRepo
NewMockRuleRepo creates a new mock instance
func (*MockRuleRepo) Delete ¶
func (m *MockRuleRepo) Delete(ctx context.Context, id int64) error
Delete mocks base method
func (*MockRuleRepo) EXPECT ¶
func (m *MockRuleRepo) EXPECT() *MockRuleRepoMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockRuleRepo) Find ¶
func (m *MockRuleRepo) Find(ctx context.Context, id int64) (*repository.Rule, error)
Find mocks base method
func (*MockRuleRepo) Insert ¶
func (m *MockRuleRepo) Insert(ctx context.Context, rule repository.Rule) (int64, error)
Insert mocks base method
func (*MockRuleRepo) List ¶
func (m *MockRuleRepo) List(ctx context.Context) ([]*repository.Rule, error)
List mocks base method
func (*MockRuleRepo) Update ¶
func (m *MockRuleRepo) Update(ctx context.Context, rule repository.Rule) error
Update mocks base method
type MockRuleRepoMockRecorder ¶
type MockRuleRepoMockRecorder struct {
// contains filtered or unexported fields
}
MockRuleRepoMockRecorder is the mock recorder for MockRuleRepo
func (*MockRuleRepoMockRecorder) Delete ¶
func (mr *MockRuleRepoMockRecorder) Delete(ctx, id interface{}) *gomock.Call
Delete indicates an expected call of Delete
func (*MockRuleRepoMockRecorder) Find ¶
func (mr *MockRuleRepoMockRecorder) Find(ctx, id interface{}) *gomock.Call
Find indicates an expected call of Find
func (*MockRuleRepoMockRecorder) Insert ¶
func (mr *MockRuleRepoMockRecorder) Insert(ctx, rule interface{}) *gomock.Call
Insert indicates an expected call of Insert
func (*MockRuleRepoMockRecorder) List ¶
func (mr *MockRuleRepoMockRecorder) List(ctx interface{}) *gomock.Call
List indicates an expected call of List
func (*MockRuleRepoMockRecorder) Update ¶
func (mr *MockRuleRepoMockRecorder) Update(ctx, rule interface{}) *gomock.Call
Update indicates an expected call of Update
type MockRuleStoreService ¶
type MockRuleStoreService struct {
// contains filtered or unexported fields
}
MockRuleStoreService is a mock of RuleStoreService interface
func NewMockRuleStoreService ¶
func NewMockRuleStoreService(ctrl *gomock.Controller) *MockRuleStoreService
NewMockRuleStoreService creates a new mock instance
func (*MockRuleStoreService) AddURL ¶
func (m *MockRuleStoreService) AddURL(id int, key string)
AddURL mocks base method
func (*MockRuleStoreService) DeleteURL ¶
func (m *MockRuleStoreService) DeleteURL(id int) bool
DeleteURL mocks base method
func (*MockRuleStoreService) EXPECT ¶
func (m *MockRuleStoreService) EXPECT() *MockRuleStoreServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockRuleStoreService) GetURL ¶
func (m *MockRuleStoreService) GetURL(path string) (int, service.VarMap)
GetURL mocks base method
func (*MockRuleStoreService) UpdateURL ¶
func (m *MockRuleStoreService) UpdateURL(id int, key string)
UpdateURL mocks base method
type MockRuleStoreServiceMockRecorder ¶
type MockRuleStoreServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockRuleStoreServiceMockRecorder is the mock recorder for MockRuleStoreService
func (*MockRuleStoreServiceMockRecorder) AddURL ¶
func (mr *MockRuleStoreServiceMockRecorder) AddURL(id, key interface{}) *gomock.Call
AddURL indicates an expected call of AddURL
func (*MockRuleStoreServiceMockRecorder) DeleteURL ¶
func (mr *MockRuleStoreServiceMockRecorder) DeleteURL(id interface{}) *gomock.Call
DeleteURL indicates an expected call of DeleteURL
func (*MockRuleStoreServiceMockRecorder) GetURL ¶
func (mr *MockRuleStoreServiceMockRecorder) GetURL(path interface{}) *gomock.Call
GetURL indicates an expected call of GetURL
func (*MockRuleStoreServiceMockRecorder) UpdateURL ¶
func (mr *MockRuleStoreServiceMockRecorder) UpdateURL(id, key interface{}) *gomock.Call
UpdateURL indicates an expected call of UpdateURL
type MockURLStore ¶
type MockURLStore struct {
// contains filtered or unexported fields
}
MockURLStore is a mock of URLStore interface
func NewMockURLStore ¶
func NewMockURLStore(ctrl *gomock.Controller) *MockURLStore
NewMockURLStore creates a new mock instance
func (*MockURLStore) Add ¶
func (m *MockURLStore) Add(id int, key string, data interface{}) int
Add mocks base method
func (*MockURLStore) EXPECT ¶
func (m *MockURLStore) EXPECT() *MockURLStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockURLStoreMockRecorder ¶
type MockURLStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockURLStoreMockRecorder is the mock recorder for MockURLStore
func (*MockURLStoreMockRecorder) Add ¶
func (mr *MockURLStoreMockRecorder) Add(id, key, data interface{}) *gomock.Call
Add indicates an expected call of Add
func (*MockURLStoreMockRecorder) Count ¶
func (mr *MockURLStoreMockRecorder) Count() *gomock.Call
Count indicates an expected call of Count
func (*MockURLStoreMockRecorder) Delete ¶
func (mr *MockURLStoreMockRecorder) Delete(id interface{}) *gomock.Call
Delete indicates an expected call of Delete
func (*MockURLStoreMockRecorder) Get ¶
func (mr *MockURLStoreMockRecorder) Get(path, pvalues interface{}) *gomock.Call
Get indicates an expected call of Get
func (*MockURLStoreMockRecorder) String ¶
func (mr *MockURLStoreMockRecorder) String() *gomock.Call
String indicates an expected call of String