services

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: CC0-1.0 Imports: 15 Imported by: 0

Documentation

Index

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

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 (*PokemonService) NewPokemon

func (*PokemonService) UpdatePokemon

type TiersService

type TiersService struct {
	// contains filtered or unexported fields
}

func NewTiersService

func NewTiersService(repository ports.TiersRepositoryPort) *TiersService

func (*TiersService) FindAll

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 (*UsersService) NewAdmin

func (*UsersService) NewClient

func (*UsersService) UpdateClient

Jump to

Keyboard shortcuts

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