di

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 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 interface{})

IsDbTimeoutError función a llamar cuando se produce un error de db

Types

type Deps

type Deps struct {
	CurrInvalidateTokenUseCase usecases.InvalidateTokenUseCase
	CurrLog                    log.LogRusEntry
	CurrSignInUseCase          usecases.SignInUseCase
	CurrSignUpUseCase          usecases.SignUpUseCase
	CurrTokenRepository        token.TokenRepository
	CurrTokenService           token.TokenService
	CurrUserRepository         user.UserRepository
	CurrUserService            user.UserService
	CurrTokenCache             cache.Cache[token.Token]
	CurrTokenCollection        db.Collection
	CurrUserCollection         db.Collection
	CurrDatabase               *mongo.Database
	CurrSendLogout             rbt.RabbitPublisher[string]
}

func (*Deps) Database

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

func (*Deps) InvalidateTokenUseCase

func (i *Deps) InvalidateTokenUseCase() usecases.InvalidateTokenUseCase

func (*Deps) Logger

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

func (*Deps) SendLogoutPublisher

func (i *Deps) SendLogoutPublisher() rbt.RabbitPublisher[string]

func (*Deps) SignInUseCase

func (i *Deps) SignInUseCase() usecases.SignInUseCase

func (*Deps) SignUpUseCase

func (i *Deps) SignUpUseCase() usecases.SignUpUseCase

func (*Deps) TokenCache

func (i *Deps) TokenCache() cache.Cache[token.Token]

func (*Deps) TokenCollection

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

func (*Deps) TokenRepository

func (i *Deps) TokenRepository() token.TokenRepository

func (*Deps) TokenService

func (i *Deps) TokenService() token.TokenService

func (*Deps) UserCollection

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

func (*Deps) UserRepository

func (i *Deps) UserRepository() user.UserRepository

func (*Deps) UserService

func (i *Deps) UserService() user.UserService

type Injector

type Injector interface {
	Database() *mongo.Database
	InvalidateTokenUseCase() usecases.InvalidateTokenUseCase
	Logger() log.LogRusEntry
	SignInUseCase() usecases.SignInUseCase
	SignUpUseCase() usecases.SignUpUseCase
	TokenCache() cache.Cache[token.Token]
	TokenCollection() db.Collection
	TokenRepository() token.TokenRepository
	TokenService() token.TokenService
	UserCollection() db.Collection
	UserRepository() user.UserRepository
	UserService() user.UserService
	SendLogoutPublisher() rbt.RabbitPublisher[string]
}

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