Documentation ¶
Index ¶
- type Repository
- func (r Repository) GetArticleByID(id uint) (row model.Article, err error)
- func (r Repository) GetArticleByPathname(pathname string) (row model.Article, err error)
- func (r Repository) GetArticles() (rows []model.Article)
- func (r Repository) GetProductByID(id uint) (row model.Article, err error)
- func (r Repository) GetProductByPathname(pathname string) (row model.Article, err error)
- func (r Repository) GetProducts() (rows []model.Article)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
func New ¶
func New() Repository
func (Repository) GetArticleByID ¶
func (r Repository) GetArticleByID(id uint) (row model.Article, err error)
func (Repository) GetArticleByPathname ¶
func (r Repository) GetArticleByPathname(pathname string) (row model.Article, err error)
func (Repository) GetArticles ¶
func (r Repository) GetArticles() (rows []model.Article)
func (Repository) GetProductByID ¶
func (r Repository) GetProductByID(id uint) (row model.Article, err error)
func (Repository) GetProductByPathname ¶
func (r Repository) GetProductByPathname(pathname string) (row model.Article, err error)
func (Repository) GetProducts ¶
func (r Repository) GetProducts() (rows []model.Article)
Click to show internal directories.
Click to hide internal directories.