Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBadRequest = errors.New("bad request")
ErrBadRequest ...
View Source
var ErrNoSuchEntity = errors.New("no such entity")
ErrNoSuchEntity ...
View Source
var ErrNotImplemented = errors.New("not implemented")
ErrNotImplemented ...
Functions ¶
This section is empty.
Types ¶
type ArticleRepository ¶
type ArticleRepository interface { Get(ctx context.Context, id string) (*model.Article, error) GetAll(ctx context.Context) ([]*model.Article, error) Create(ctx context.Context, article *model.Article) (*model.Article, error) Update(ctx context.Context, article *model.Article) (*model.Article, error) }
ArticleRepository ...
func NewArticleMockRepository ¶
func NewArticleMockRepository() ArticleRepository
NewArticleMockRepository ...
func NewArticlePostgresqlRepository ¶
func NewArticlePostgresqlRepository(dataSourceName string) (ArticleRepository, error)
NewArticlePostgresqlRepository ...
Click to show internal directories.
Click to hide internal directories.