di

package
v0.0.0-...-2ad8e27 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: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDbTimeoutError

func IsDbTimeoutError(err error)

Types

type Deps

type Deps struct {
	CurrLog         log.LogRusEntry
	CurrHttpClient  httpx.HTTPClient
	CurrDatabase    *mongo.Database
	CurrSecRepo     security.SecurityRepository
	CurrSecSvc      security.SecurityService
	CurrEvtColl     db.Collection
	CurrOrdColl     db.Collection
	CurrStaColl     db.Collection
	CurrEvtRepo     events.EventsRepository
	CurrOrdRepo     order.OrderRepository
	CurrOrdSvc      order.OrderService
	CurrEvtSvc      events.EventService
	CurrStsRepo     status.StatusRepository
	CurrStsSvc      status.StatusService
	CurrPrjSvc      projections.ProjectionsService
	CurrSvc         services.Service
	CurrAVPublisher rbschema.ArticleValidationPublisher
	CurrPLPublisher rbschema.PlacedDataPublisher
}

func (*Deps) ArticleValidationPublisher

func (i *Deps) ArticleValidationPublisher() rbschema.ArticleValidationPublisher

func (*Deps) Database

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

func (*Deps) EventService

func (i *Deps) EventService() events.EventService

func (*Deps) EventsCollection

func (i *Deps) EventsCollection() db.Collection

func (*Deps) EventsRepository

func (i *Deps) EventsRepository() events.EventsRepository

func (*Deps) HttpClient

func (i *Deps) HttpClient() httpx.HTTPClient

func (*Deps) Logger

func (i *Deps) Logger() log.LogRusEntry

func (*Deps) OrderService

func (i *Deps) OrderService() order.OrderService

func (*Deps) OrdersCollection

func (i *Deps) OrdersCollection() db.Collection

func (*Deps) OrdersRepository

func (i *Deps) OrdersRepository() order.OrderRepository

func (*Deps) PlacedOrderPublisher

func (i *Deps) PlacedOrderPublisher() rbschema.PlacedDataPublisher

func (*Deps) ProjectionsService

func (i *Deps) ProjectionsService() projections.ProjectionsService

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

func (*Deps) StatusCollection

func (i *Deps) StatusCollection() db.Collection

func (*Deps) StatusRepository

func (i *Deps) StatusRepository() status.StatusRepository

func (*Deps) StatusService

func (i *Deps) StatusService() status.StatusService

type Injector

type Injector interface {
	Logger() log.LogRusEntry
	Database() *mongo.Database
	HttpClient() httpx.HTTPClient
	SecurityRepository() security.SecurityRepository
	SecurityService() security.SecurityService
	EventsCollection() db.Collection
	EventsRepository() events.EventsRepository
	EventService() events.EventService
	OrdersCollection() db.Collection
	OrdersRepository() order.OrderRepository
	OrderService() order.OrderService
	StatusCollection() db.Collection
	StatusRepository() status.StatusRepository
	StatusService() status.StatusService
	ProjectionsService() projections.ProjectionsService
	Service() services.Service
	ArticleValidationPublisher() rbschema.ArticleValidationPublisher
	PlacedOrderPublisher() rbschema.PlacedDataPublisher
}

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