Documentation ¶
Index ¶
- type Repository
- func (_m *Repository) DeleteByID(ctx context.Context, id int64) (int, error)
- func (_m *Repository) Get(ctx context.Context, data entity.GetRequest) ([]*entity.Anime, int, int, error)
- func (_m *Repository) GetByID(ctx context.Context, id int64) (*entity.Anime, int, error)
- func (_m *Repository) GetByIDs(ctx context.Context, ids []int64) ([]*entity.Anime, int, error)
- func (_m *Repository) GetHistories(ctx context.Context, data entity.GetHistoriesRequest) ([]entity.History, int, error)
- func (_m *Repository) GetIDs(ctx context.Context) ([]int64, int, error)
- func (_m *Repository) GetMaxID(ctx context.Context) (int64, int, error)
- func (_m *Repository) GetOldFinishedIDs(ctx context.Context) ([]int64, int, error)
- func (_m *Repository) GetOldNotYetIDs(ctx context.Context) ([]int64, int, error)
- func (_m *Repository) GetOldReleasingIDs(ctx context.Context) ([]int64, int, error)
- func (_m *Repository) GetRelatedByIDs(ctx context.Context, ids []int64) ([]*entity.AnimeRelated, int, error)
- func (_m *Repository) IsOld(ctx context.Context, id int64) (bool, int, error)
- func (_m *Repository) Update(ctx context.Context, data entity.Anime) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
Repository is an autogenerated mock type for the Repository type
func NewRepository ¶
func NewRepository(t interface { mock.TestingT Cleanup(func()) }) *Repository
NewRepository creates a new instance of Repository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Repository) DeleteByID ¶
DeleteByID provides a mock function with given fields: ctx, id
func (*Repository) Get ¶
func (_m *Repository) Get(ctx context.Context, data entity.GetRequest) ([]*entity.Anime, int, int, error)
Get provides a mock function with given fields: ctx, data
func (*Repository) GetHistories ¶
func (_m *Repository) GetHistories(ctx context.Context, data entity.GetHistoriesRequest) ([]entity.History, int, error)
GetHistories provides a mock function with given fields: ctx, data
func (*Repository) GetOldFinishedIDs ¶
GetOldFinishedIDs provides a mock function with given fields: ctx
func (*Repository) GetOldNotYetIDs ¶
GetOldNotYetIDs provides a mock function with given fields: ctx
func (*Repository) GetOldReleasingIDs ¶
GetOldReleasingIDs provides a mock function with given fields: ctx
func (*Repository) GetRelatedByIDs ¶
func (_m *Repository) GetRelatedByIDs(ctx context.Context, ids []int64) ([]*entity.AnimeRelated, int, error)
GetRelatedByIDs provides a mock function with given fields: ctx, ids