Documentation ¶
Index ¶
- func IsDbTimeoutError(err error)
- type Deps
- func (i *Deps) ArticleValidatorPublisher() rbtschema.ArticleValidationPublisher
- func (i *Deps) CartCollection() db.Collection
- func (i *Deps) CartRepository() cart.CartRepository
- func (i *Deps) CartService() cart.CartService
- func (i *Deps) Database() *mongo.Database
- func (i *Deps) HttpClient() httpx.HTTPClient
- func (i *Deps) Logger() log.LogRusEntry
- func (i *Deps) PlacedDataPublisher() rbtschema.PlacedDataPublisher
- func (i *Deps) SecurityRepository() security.SecurityRepository
- func (i *Deps) SecurityService() security.SecurityService
- func (i *Deps) Service() services.Service
- 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 CurrCartColl db.Collection CurrCartRepo cart.CartRepository CurrCartSvc cart.CartService CurrValPublisher rbtschema.ArticleValidationPublisher CurrPldPublisher rbtschema.PlacedDataPublisher CurrService services.Service }
func (*Deps) ArticleValidatorPublisher ¶
func (i *Deps) ArticleValidatorPublisher() rbtschema.ArticleValidationPublisher
func (*Deps) CartCollection ¶
func (i *Deps) CartCollection() db.Collection
func (*Deps) CartRepository ¶
func (i *Deps) CartRepository() cart.CartRepository
func (*Deps) CartService ¶
func (i *Deps) CartService() cart.CartService
func (*Deps) HttpClient ¶
func (i *Deps) HttpClient() httpx.HTTPClient
func (*Deps) Logger ¶
func (i *Deps) Logger() log.LogRusEntry
func (*Deps) PlacedDataPublisher ¶
func (i *Deps) PlacedDataPublisher() rbtschema.PlacedDataPublisher
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 CartCollection() db.Collection CartRepository() cart.CartRepository CartService() cart.CartService ArticleValidatorPublisher() rbtschema.ArticleValidationPublisher PlacedDataPublisher() rbtschema.PlacedDataPublisher Service() services.Service }
func NewInjector ¶
func NewInjector(log log.LogRusEntry) Injector
Click to show internal directories.
Click to hide internal directories.