Versions in this module Expand all Collapse all v0 v0.0.0 Dec 26, 2020 Changes in this version + var ErrBadRequest = errors.New("bad request") + var ErrNoSuchEntity = errors.New("no such entity") + var ErrNotImplemented = errors.New("not implemented") + type ArticleRepository interface + Create func(ctx context.Context, article *model.Article) (*model.Article, error) + Get func(ctx context.Context, id string) (*model.Article, error) + GetAll func(ctx context.Context) ([]*model.Article, error) + Update func(ctx context.Context, article *model.Article) (*model.Article, error) + func NewArticleMockRepository() ArticleRepository + func NewArticlePostgresqlRepository(dataSourceName string) (ArticleRepository, error)