Documentation ¶
Index ¶
- type Repository
- func (repo *Repository) Create(ctx context.Context, item *domain.Article) (int64, error)
- func (repo *Repository) Find(ctx context.Context, id int64) (*domain.Article, error)
- func (repo *Repository) FindAll(ctx context.Context) (*domain.Articles, error)
- func (repo *Repository) Update(ctx context.Context, item *domain.Article) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
func NewRepository ¶
func NewRepository(db *sql.DB) (*Repository, error)
Click to show internal directories.
Click to hide internal directories.