di

package
v0.0.0-...-6aeb5bb Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: GPL-3.0 Imports: 10 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
	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) 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) 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

Jump to

Keyboard shortcuts

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