Documentation ¶
Index ¶
- func IsDbTimeoutError(err error)
- type Deps
- func (i *Deps) ArticleExistPublisher() rschema.ArticleExistPublisher
- func (i *Deps) ArticleRepository() article.ArticleRepository
- func (i *Deps) ArticleService() article.ArticleService
- func (i *Deps) CatalogCollection() db.Collection
- func (i *Deps) Database() *mongo.Database
- func (i *Deps) HttpClient() httpx.HTTPClient
- func (i *Deps) Logger() log.LogRusEntry
- func (i *Deps) SecurityRepository() security.SecurityRepository
- func (i *Deps) SecurityService() security.SecurityService
- type Injector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsDbTimeoutError ¶
func IsDbTimeoutError(err error)
IsDbTimeoutError función a llamar cuando se produce un error de db
Types ¶
type Deps ¶
type Deps struct { CurrLog log.LogRusEntry CurrHttpClient httpx.HTTPClient CurrDatabase *mongo.Database CurrSecRepo security.SecurityRepository CurrSecSvc security.SecurityService CurrCatalogColl db.Collection CurrArticleRepository article.ArticleRepository CurrArticleService article.ArticleService CurrArtExistPublisher rschema.ArticleExistPublisher }
func (*Deps) ArticleExistPublisher ¶
func (i *Deps) ArticleExistPublisher() rschema.ArticleExistPublisher
func (*Deps) ArticleRepository ¶
func (i *Deps) ArticleRepository() article.ArticleRepository
func (*Deps) ArticleService ¶
func (i *Deps) ArticleService() article.ArticleService
func (*Deps) CatalogCollection ¶
func (i *Deps) CatalogCollection() db.Collection
func (*Deps) HttpClient ¶
func (i *Deps) HttpClient() httpx.HTTPClient
func (*Deps) Logger ¶
func (i *Deps) Logger() log.LogRusEntry
func (*Deps) SecurityRepository ¶
func (i *Deps) SecurityRepository() security.SecurityRepository
func (*Deps) SecurityService ¶
func (i *Deps) SecurityService() security.SecurityService
type Injector ¶
type Injector interface { Logger() log.LogRusEntry Database() *mongo.Database HttpClient() httpx.HTTPClient SecurityRepository() security.SecurityRepository SecurityService() security.SecurityService CatalogCollection() db.Collection ArticleRepository() article.ArticleRepository ArticleService() article.ArticleService ArticleExistPublisher() rschema.ArticleExistPublisher }
func NewInjector ¶
func NewInjector(log log.LogRusEntry) Injector
Click to show internal directories.
Click to hide internal directories.