Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TournamentService ¶
type TournamentService interface { Create(tournament *dto.TournamentCreationRequestDTO, user *dto.UserResponseDTO) (*dto.TournamentResponseDTO, error) Delete(shortName string, user *dto.UserResponseDTO) error GetByShortName(shortName string) (*dto.TournamentResponseDTO, error) List(after string, limit int) ([]dto.TournamentResponseDTO, error) ListByOwner(ownerID int64) ([]dto.TournamentResponseDTO, error) ListPast(count int) ([]dto.TournamentResponseDTO, error) ListUpcoming(count int) ([]dto.TournamentResponseDTO, error) Update(shortName string, request *dto.TournamentUpdateRequestDTO, user *dto.UserResponseDTO) (*dto.TournamentResponseDTO, error) }
func NewTournamentService ¶
func NewTournamentService(tournamentRepository repository.TournamentRepository, clock clock.Clock) TournamentService
type UserService ¶
type UserService interface { Authenticate(request *dto.UserAuthenticationRequestDTO) (*dto.UserResponseDTO, error) Register(request *dto.UserRegistrationRequestDTO) (*dto.UserResponseDTO, error) Update(id int64, request *dto.UserUpdateRequestDTO) (*dto.UserResponseDTO, error) UpdatePassword(id int64, password string) (*dto.UserResponseDTO, error) ExistsByEmail(email string) (bool, error) GetById(id int64) (*dto.UserResponseDTO, error) GetAll() ([]dto.UserResponseDTO, error) }
func NewUserService ¶
func NewUserService(userRepository repository.UserRepository) UserService
Click to show internal directories.
Click to hide internal directories.