Documentation ¶
Index ¶
- type AuthorRepository
- type AuthorUsecase
- type PostRepository
- func (_m *PostRepository) Delete(ctx context.Context, id int64) error
- func (_m *PostRepository) Fetch(ctx context.Context, cursor string, num int64) ([]domain.Post, string, error)
- func (_m *PostRepository) GetByID(ctx context.Context, id int64) (domain.Post, error)
- func (_m *PostRepository) GetByTitle(ctx context.Context, title string) (domain.Post, error)
- func (_m *PostRepository) Store(ctx context.Context, p *domain.Post) error
- func (_m *PostRepository) Update(ctx context.Context, p *domain.Post) error
- type PostUsecase
- func (_m *PostUsecase) Delete(ctx context.Context, id int64) error
- func (_m *PostUsecase) Fetch(ctx context.Context, cursor string, num int64) ([]domain.Post, string, error)
- func (_m *PostUsecase) GetByID(ctx context.Context, id int64) (domain.Post, error)
- func (_m *PostUsecase) GetByTitle(ctx context.Context, title string) (domain.Post, error)
- func (_m *PostUsecase) Store(ctx context.Context, p *domain.Post) error
- func (_m *PostUsecase) Update(ctx context.Context, p *domain.Post) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthorRepository ¶
AuthorRepository is an autogenerated mock type for the AuthorRepository type
type AuthorUsecase ¶
AuthorUsecase is an autogenerated mock type for the AuthorUsecase type
type PostRepository ¶
PostRepository is an autogenerated mock type for the PostRepository type
func (*PostRepository) Delete ¶
func (_m *PostRepository) Delete(ctx context.Context, id int64) error
Delete provides a mock function with given fields: ctx, id
func (*PostRepository) Fetch ¶
func (_m *PostRepository) Fetch(ctx context.Context, cursor string, num int64) ([]domain.Post, string, error)
Fetch provides a mock function with given fields: ctx, cursor, num
func (*PostRepository) GetByTitle ¶
GetByTitle provides a mock function with given fields: ctx, title
type PostUsecase ¶
PostUsecase is an autogenerated mock type for the PostUsecase type
func (*PostUsecase) Delete ¶
func (_m *PostUsecase) Delete(ctx context.Context, id int64) error
Delete provides a mock function with given fields: ctx, id
func (*PostUsecase) Fetch ¶
func (_m *PostUsecase) Fetch(ctx context.Context, cursor string, num int64) ([]domain.Post, string, error)
Fetch provides a mock function with given fields: ctx, cursor, num
func (*PostUsecase) GetByTitle ¶
GetByTitle provides a mock function with given fields: ctx, title