Documentation ¶
Index ¶
- type OfferRepositoryMock
- func (m *OfferRepositoryMock) Delete(ctx context.Context, id primitive.ObjectID) error
- func (m *OfferRepositoryMock) FindAll(ctx context.Context, limit int64, skip int64) ([]*model.Offer, int64, error)
- func (m *OfferRepositoryMock) FindBy(ctx context.Context, by primitive.M) ([]*model.Offer, error)
- func (m *OfferRepositoryMock) FindById(ctx context.Context, id primitive.ObjectID) (*model.Offer, error)
- func (m *OfferRepositoryMock) Insert(ctx context.Context, offer *model.Offer) error
- func (m *OfferRepositoryMock) Update(ctx context.Context, offer *model.Offer) error
- type WatchUrlRepositoryMock
- func (w *WatchUrlRepositoryMock) Delete(ctx context.Context, id primitive.ObjectID) error
- func (w *WatchUrlRepositoryMock) FindAll(ctx context.Context, limit int64, skip int64) ([]*model.WatchUrl, int64, error)
- func (w *WatchUrlRepositoryMock) FindBy(ctx context.Context, by primitive.M) ([]*model.WatchUrl, error)
- func (w *WatchUrlRepositoryMock) FindById(ctx context.Context, id primitive.ObjectID) (*model.WatchUrl, error)
- func (w *WatchUrlRepositoryMock) Insert(ctx context.Context, watchUrl *model.WatchUrl) error
- func (w *WatchUrlRepositoryMock) InsertIfNotExists(ctx context.Context, watchUrl *model.WatchUrl) error
- func (w *WatchUrlRepositoryMock) Update(ctx context.Context, watchUrl *model.WatchUrl) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OfferRepositoryMock ¶
type OfferRepositoryMock struct { Callback func(this *OfferRepositoryMock, method string, args ...any) ReturnSingle *model.Offer ReturnMany []*model.Offer ReturnError error }
OfferRepositoryMock is a mock implementation of model.Offer Repository
type WatchUrlRepositoryMock ¶
type WatchUrlRepositoryMock struct { Callback func(this *WatchUrlRepositoryMock, method string, args ...any) ReturnSingle *model.WatchUrl ReturnMany []*model.WatchUrl ReturnError error }
func (*WatchUrlRepositoryMock) InsertIfNotExists ¶
Click to show internal directories.
Click to hide internal directories.