Documentation ¶
Index ¶
- func IsDbTimeoutError(err interface{})
- type Deps
- func (i *Deps) Database() *mongo.Database
- func (i *Deps) InvalidateTokenUseCase() usecases.InvalidateTokenUseCase
- func (i *Deps) Logger() log.LogRusEntry
- func (i *Deps) SendLogoutPublisher() rbt.RabbitPublisher[string]
- func (i *Deps) SignInUseCase() usecases.SignInUseCase
- func (i *Deps) SignUpUseCase() usecases.SignUpUseCase
- func (i *Deps) TokenCache() cache.Cache[token.Token]
- func (i *Deps) TokenCollection() db.Collection
- func (i *Deps) TokenRepository() token.TokenRepository
- func (i *Deps) TokenService() token.TokenService
- func (i *Deps) UserCollection() db.Collection
- func (i *Deps) UserRepository() user.UserRepository
- func (i *Deps) UserService() user.UserService
- type Injector
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) 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) 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
Click to show internal directories.
Click to hide internal directories.