Documentation
¶
Overview ¶
Code generated by mockery v1.0.0. DO NOT EDIT.
Code generated by mockery v1.0.0. DO NOT EDIT.
Code generated by mockery v1.0.0. DO NOT EDIT.
Index ¶
- type ArticleRepository
- func (_m *ArticleRepository) Delete(ctx context.Context, id int64) error
- func (_m *ArticleRepository) Fetch(ctx context.Context, cursor string, num int64) ([]domain.Article, string, error)
- func (_m *ArticleRepository) GetByID(ctx context.Context, id int64) (domain.Article, error)
- func (_m *ArticleRepository) GetByTitle(ctx context.Context, title string) (domain.Article, error)
- func (_m *ArticleRepository) Store(_a0 context.Context, _a1 *domain.Article) error
- func (_m *ArticleRepository) Update(ctx context.Context, ar *domain.Article) error
- type ArticleUsecase
- func (_m *ArticleUsecase) Delete(ctx context.Context, id int64) error
- func (_m *ArticleUsecase) Fetch(ctx context.Context, cursor string, num int64) ([]domain.Article, string, error)
- func (_m *ArticleUsecase) GetByID(ctx context.Context, id int64) (domain.Article, error)
- func (_m *ArticleUsecase) GetByTitle(ctx context.Context, title string) (domain.Article, error)
- func (_m *ArticleUsecase) Store(_a0 context.Context, _a1 *domain.Article) error
- func (_m *ArticleUsecase) Update(ctx context.Context, ar *domain.Article) error
- type AuthorRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArticleRepository ¶
ArticleRepository is an autogenerated mock type for the ArticleRepository type
func (*ArticleRepository) Delete ¶
func (_m *ArticleRepository) Delete(ctx context.Context, id int64) error
Delete provides a mock function with given fields: ctx, id
func (*ArticleRepository) Fetch ¶
func (_m *ArticleRepository) Fetch(ctx context.Context, cursor string, num int64) ([]domain.Article, string, error)
Fetch provides a mock function with given fields: ctx, cursor, num
func (*ArticleRepository) GetByTitle ¶
GetByTitle provides a mock function with given fields: ctx, title
type ArticleUsecase ¶
ArticleUsecase is an autogenerated mock type for the ArticleUsecase type
func (*ArticleUsecase) Delete ¶
func (_m *ArticleUsecase) Delete(ctx context.Context, id int64) error
Delete provides a mock function with given fields: ctx, id
func (*ArticleUsecase) Fetch ¶
func (_m *ArticleUsecase) Fetch(ctx context.Context, cursor string, num int64) ([]domain.Article, string, error)
Fetch provides a mock function with given fields: ctx, cursor, num
func (*ArticleUsecase) GetByTitle ¶
GetByTitle provides a mock function with given fields: ctx, title
type AuthorRepository ¶
AuthorRepository is an autogenerated mock type for the AuthorRepository type