Documentation ¶
Overview ¶
Package mock_store is a generated GoMock package.
Package mock_store is a generated GoMock package.
Index ¶
- type MockFactory
- type MockFactoryMockRecorder
- type MockUserStore
- func (m *MockUserStore) Create(arg0 context.Context, arg1 *model.User, arg2 model.CreateOptions) error
- func (m *MockUserStore) Delete(arg0 context.Context, arg1 uint64, arg2 model.DeleteOptions) error
- func (m *MockUserStore) EXPECT() *MockUserStoreMockRecorder
- func (m *MockUserStore) Get(arg0 context.Context, arg1 uint64, arg2 model.GetOptions) (*model.User, error)
- func (m *MockUserStore) GetByUsername(arg0 context.Context, arg1 string, arg2 model.GetOptions) (*model.User, error)
- func (m *MockUserStore) List(arg0 context.Context, arg1 model.ListOptions) (*model.UserList, error)
- func (m *MockUserStore) Update(arg0 context.Context, arg1 *model.User, arg2 model.UpdateOptions) error
- type MockUserStoreMockRecorder
- func (mr *MockUserStoreMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockUserStoreMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockUserStoreMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockUserStoreMockRecorder) GetByUsername(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockUserStoreMockRecorder) List(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockUserStoreMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockFactory ¶
type MockFactory struct {
// contains filtered or unexported fields
}
MockFactory is a mock of Factory interface.
func NewMockFactory ¶
func NewMockFactory(ctrl *gomock.Controller) *MockFactory
NewMockFactory creates a new mock instance.
func (*MockFactory) EXPECT ¶
func (m *MockFactory) EXPECT() *MockFactoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockFactoryMockRecorder ¶
type MockFactoryMockRecorder struct {
// contains filtered or unexported fields
}
MockFactoryMockRecorder is the mock recorder for MockFactory.
func (*MockFactoryMockRecorder) Close ¶
func (mr *MockFactoryMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockFactoryMockRecorder) Users ¶
func (mr *MockFactoryMockRecorder) Users() *gomock.Call
Users indicates an expected call of Users.
type MockUserStore ¶
type MockUserStore struct {
// contains filtered or unexported fields
}
MockUserStore is a mock of UserStore interface.
func NewMockUserStore ¶
func NewMockUserStore(ctrl *gomock.Controller) *MockUserStore
NewMockUserStore creates a new mock instance.
func (*MockUserStore) Create ¶
func (m *MockUserStore) Create(arg0 context.Context, arg1 *model.User, arg2 model.CreateOptions) error
Create mocks base method.
func (*MockUserStore) Delete ¶
func (m *MockUserStore) Delete(arg0 context.Context, arg1 uint64, arg2 model.DeleteOptions) error
Delete mocks base method.
func (*MockUserStore) EXPECT ¶
func (m *MockUserStore) EXPECT() *MockUserStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUserStore) Get ¶
func (m *MockUserStore) Get(arg0 context.Context, arg1 uint64, arg2 model.GetOptions) (*model.User, error)
Get mocks base method.
func (*MockUserStore) GetByUsername ¶
func (m *MockUserStore) GetByUsername(arg0 context.Context, arg1 string, arg2 model.GetOptions) (*model.User, error)
GetByUsername mocks base method.
func (*MockUserStore) List ¶
func (m *MockUserStore) List(arg0 context.Context, arg1 model.ListOptions) (*model.UserList, error)
List mocks base method.
func (*MockUserStore) Update ¶
func (m *MockUserStore) Update(arg0 context.Context, arg1 *model.User, arg2 model.UpdateOptions) error
Update mocks base method.
type MockUserStoreMockRecorder ¶
type MockUserStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockUserStoreMockRecorder is the mock recorder for MockUserStore.
func (*MockUserStoreMockRecorder) Create ¶
func (mr *MockUserStoreMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockUserStoreMockRecorder) Delete ¶
func (mr *MockUserStoreMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockUserStoreMockRecorder) Get ¶
func (mr *MockUserStoreMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockUserStoreMockRecorder) GetByUsername ¶
func (mr *MockUserStoreMockRecorder) GetByUsername(arg0, arg1, arg2 interface{}) *gomock.Call
GetByUsername indicates an expected call of GetByUsername.
func (*MockUserStoreMockRecorder) List ¶
func (mr *MockUserStoreMockRecorder) List(arg0, arg1 interface{}) *gomock.Call
List indicates an expected call of List.
func (*MockUserStoreMockRecorder) Update ¶
func (mr *MockUserStoreMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call
Update indicates an expected call of Update.