Documentation ¶
Overview ¶
Package repo is a generated GoMock package.
Index ¶
- type IDeliveryRepo
- type MockIDeliveryRepo
- func (m *MockIDeliveryRepo) Create(c context.Context, item *model.Delivery) error
- func (m *MockIDeliveryRepo) Delete(c context.Context, id string) error
- func (m *MockIDeliveryRepo) EXPECT() *MockIDeliveryRepoMockRecorder
- func (m *MockIDeliveryRepo) GetByID(c context.Context, id string) (*model.Delivery, error)
- func (m *MockIDeliveryRepo) List(c context.Context, cond utils.Pagination) ([]*model.Delivery, int, error)
- func (m *MockIDeliveryRepo) Update(c context.Context, item *model.Delivery) error
- type MockIDeliveryRepoMockRecorder
- func (mr *MockIDeliveryRepoMockRecorder) Create(c, item any) *gomock.Call
- func (mr *MockIDeliveryRepoMockRecorder) Delete(c, id any) *gomock.Call
- func (mr *MockIDeliveryRepoMockRecorder) GetByID(c, id any) *gomock.Call
- func (mr *MockIDeliveryRepoMockRecorder) List(c, cond any) *gomock.Call
- func (mr *MockIDeliveryRepoMockRecorder) Update(c, item any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IDeliveryRepo ¶
type IDeliveryRepo interface { persistence.IRepository[*model.Delivery] }
IDeliveryRepo represents a repository interface for managing delivery entities.
type MockIDeliveryRepo ¶
type MockIDeliveryRepo struct {
// contains filtered or unexported fields
}
MockIDeliveryRepo is a mock of IDeliveryRepo interface.
func NewMockIDeliveryRepo ¶
func NewMockIDeliveryRepo(ctrl *gomock.Controller) *MockIDeliveryRepo
NewMockIDeliveryRepo creates a new mock instance.
func (*MockIDeliveryRepo) Delete ¶
func (m *MockIDeliveryRepo) Delete(c context.Context, id string) error
Delete mocks base method.
func (*MockIDeliveryRepo) EXPECT ¶
func (m *MockIDeliveryRepo) EXPECT() *MockIDeliveryRepoMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockIDeliveryRepoMockRecorder ¶
type MockIDeliveryRepoMockRecorder struct {
// contains filtered or unexported fields
}
MockIDeliveryRepoMockRecorder is the mock recorder for MockIDeliveryRepo.
func (*MockIDeliveryRepoMockRecorder) Create ¶
func (mr *MockIDeliveryRepoMockRecorder) Create(c, item any) *gomock.Call
Create indicates an expected call of Create.
func (*MockIDeliveryRepoMockRecorder) Delete ¶
func (mr *MockIDeliveryRepoMockRecorder) Delete(c, id any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockIDeliveryRepoMockRecorder) GetByID ¶
func (mr *MockIDeliveryRepoMockRecorder) GetByID(c, id any) *gomock.Call
GetByID indicates an expected call of GetByID.
Click to show internal directories.
Click to hide internal directories.