repository

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct {
	*gorm.DB
}

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL