di

package
v0.0.0-...-ae60a63 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2025 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

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) Database

func (i *Deps) Database() *mongo.Database

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

func (*Deps) Service

func (i *Deps) Service() services.Service

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

Jump to

Keyboard shortcuts

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