Documentation
¶
Index ¶
- type AuthService
- type PokemonService
- func (s *PokemonService) DeletePokemon(id string) *customErrors.InternalError
- func (s *PokemonService) GetAvailablePokemons() ([]entities.PokemonProduct, *customErrors.InternalError)
- func (s *PokemonService) GetPokemonById(id string) (*entities.PokemonProduct, *customErrors.InternalError)
- func (s *PokemonService) NewPokemon(input myTypes.NewPokemonInput) *customErrors.InternalError
- func (s *PokemonService) UpdatePokemon(id string, input myTypes.UpdatePokemonInput) (*entities.PokemonProduct, *customErrors.InternalError)
- type TiersService
- type UsersService
- func (s *UsersService) DeleteClient(id string) *customErrors.InternalError
- func (s *UsersService) GetUserById(id string) (*entities.User, *customErrors.InternalError)
- func (s *UsersService) GetUsers(where myTypes.Where) ([]entities.User, *customErrors.InternalError)
- func (s *UsersService) NewAdmin(input myTypes.NewUserInput) *customErrors.InternalError
- func (s *UsersService) NewClient(input myTypes.NewUserInput) *customErrors.InternalError
- func (s *UsersService) UpdateClient(id string, input myTypes.UpdateUserInput) (*myTypes.UpdateClientOutput, *customErrors.InternalError)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthService ¶
type AuthService struct {
// contains filtered or unexported fields
}
func NewAuthService ¶
func NewAuthService(authenticator ports.AuthenticatorPort) *AuthService
func (*AuthService) Login ¶
func (s *AuthService) Login(input myTypes.LoginInput) (*myTypes.LoginOutput, *customErrors.InternalError)
type PokemonService ¶
type PokemonService struct {
// contains filtered or unexported fields
}
func NewPokemonService ¶
func NewPokemonService(repository ports.PokemonRepositoryPort, typesRepository ports.PokemonTypesRepositoryPort, cache *cache.Cache) *PokemonService
func (*PokemonService) DeletePokemon ¶
func (s *PokemonService) DeletePokemon(id string) *customErrors.InternalError
func (*PokemonService) GetAvailablePokemons ¶
func (s *PokemonService) GetAvailablePokemons() ([]entities.PokemonProduct, *customErrors.InternalError)
func (*PokemonService) GetPokemonById ¶
func (s *PokemonService) GetPokemonById(id string) (*entities.PokemonProduct, *customErrors.InternalError)
func (*PokemonService) NewPokemon ¶
func (s *PokemonService) NewPokemon(input myTypes.NewPokemonInput) *customErrors.InternalError
func (*PokemonService) UpdatePokemon ¶
func (s *PokemonService) UpdatePokemon(id string, input myTypes.UpdatePokemonInput) (*entities.PokemonProduct, *customErrors.InternalError)
type TiersService ¶
type TiersService struct {
// contains filtered or unexported fields
}
func NewTiersService ¶
func NewTiersService(repository ports.TiersRepositoryPort) *TiersService
func (*TiersService) FindAll ¶
func (s *TiersService) FindAll() ([]entities.Tier, *customErrors.InternalError)
func (*TiersService) FindById ¶
func (s *TiersService) FindById(id int) (*entities.Tier, *customErrors.InternalError)
type UsersService ¶
type UsersService struct {
// contains filtered or unexported fields
}
func NewUsersService ¶
func NewUsersService(repository ports.UserRepositoryPort, hashHelper ports.HashHelperPort) *UsersService
func (*UsersService) DeleteClient ¶
func (s *UsersService) DeleteClient(id string) *customErrors.InternalError
func (*UsersService) GetUserById ¶
func (s *UsersService) GetUserById(id string) (*entities.User, *customErrors.InternalError)
func (*UsersService) GetUsers ¶
func (s *UsersService) GetUsers(where myTypes.Where) ([]entities.User, *customErrors.InternalError)
func (*UsersService) NewAdmin ¶
func (s *UsersService) NewAdmin(input myTypes.NewUserInput) *customErrors.InternalError
func (*UsersService) NewClient ¶
func (s *UsersService) NewClient(input myTypes.NewUserInput) *customErrors.InternalError
func (*UsersService) UpdateClient ¶
func (s *UsersService) UpdateClient(id string, input myTypes.UpdateUserInput) (*myTypes.UpdateClientOutput, *customErrors.InternalError)
Click to show internal directories.
Click to hide internal directories.