Documentation ¶
Index ¶
- type Access
- func (_m *Access) Game(accessType databaseAccess.AccessType, leagueId int, gameId int, userId int) (bool, error)
- func (_m *Access) League(accessType databaseAccess.AccessType, leagueId int, userId int) (bool, error)
- func (_m *Access) Player(accessType databaseAccess.AccessType, leagueId int, teamId int, playerId int, ...) (bool, error)
- func (_m *Access) Report(leagueId int, gameId int, userId int) (bool, error)
- func (_m *Access) Team(accessType databaseAccess.AccessType, leagueId int, teamId int, userId int) (bool, error)
- type Config
- type GamesDAO
- func (_m *GamesDAO) AddExternalId(gameId int, externalId string) error
- func (_m *GamesDAO) CreateGame(leagueId int, gameInformation databaseAccess.GameCreationInformation) (int, error)
- func (_m *GamesDAO) DeleteGame(gameId int) error
- func (_m *GamesDAO) DoesExistConflict(team1Id int, team2Id int, gameTime int) (bool, error)
- func (_m *GamesDAO) GetAllGamesInLeague(leagueId int) ([]*databaseAccess.Game, error)
- func (_m *GamesDAO) GetGameInformation(gameId int) (*databaseAccess.Game, error)
- func (_m *GamesDAO) GetGameInformationFromExternalId(externalId string) (*databaseAccess.Game, error)
- func (_m *GamesDAO) HasReportResultPermissions(leagueId int, gameId int, userId int) (bool, error)
- func (_m *GamesDAO) ReportGame(gameId int, gameResult databaseAccess.GameResult) error
- func (_m *GamesDAO) RescheduleGame(gameId int, gameTime int) error
- type IScheduler
- type IconManager
- type LeagueOfLegendsDAO
- func (_m *LeagueOfLegendsDAO) GetChampionStats(leagueId int) ([]*databaseAccess.ChampionStats, error)
- func (_m *LeagueOfLegendsDAO) GetPlayerStats(leagueId int) ([]*databaseAccess.PlayerStats, error)
- func (_m *LeagueOfLegendsDAO) GetTeamStats(leagueId int) ([]*databaseAccess.TeamStats, error)
- func (_m *LeagueOfLegendsDAO) ReportEndGameStats(leagueId int, gameId int, winTeamId int, loseTeamId int, ...) error
- type LeaguesDAO
- func (_m *LeaguesDAO) AddAvailability(leagueId int, availability databaseAccess.AvailabilityCore) (int, error)
- func (_m *LeaguesDAO) AddWeeklyAvailability(leagueId int, availability databaseAccess.WeeklyAvailabilityCore) (int, error)
- func (_m *LeaguesDAO) CanJoinLeague(leagueId int, userId int) (bool, error)
- func (_m *LeaguesDAO) CreateLeague(userId int, leagueInfo databaseAccess.LeagueCore) (int, error)
- func (_m *LeaguesDAO) DeleteAvailability(leagueId int, availabilityId int) error
- func (_m *LeaguesDAO) DeleteWeeklyAvailability(leagueId int, availabilityId int) error
- func (_m *LeaguesDAO) EditWeeklyAvailability(leagueId int, availabilityId int, ...) (int, error)
- func (_m *LeaguesDAO) GetAvailabilities(leagueId int) ([]*databaseAccess.Availability, error)
- func (_m *LeaguesDAO) GetLeagueInformation(leagueId int) (*databaseAccess.League, error)
- func (_m *LeaguesDAO) GetMarkdownFile(leagueId int) (string, error)
- func (_m *LeaguesDAO) GetPublicLeagueList() ([]*databaseAccess.League, error)
- func (_m *LeaguesDAO) GetTeamManagerInformation(leagueId int) ([]*databaseAccess.TeamWithManagers, error)
- func (_m *LeaguesDAO) GetWeeklyAvailabilities(leagueId int) ([]*databaseAccess.WeeklyAvailability, error)
- func (_m *LeaguesDAO) IsLeagueViewable(leagueId int, userId int) (bool, error)
- func (_m *LeaguesDAO) IsNameInUse(leagueId int, name string) (bool, error)
- func (_m *LeaguesDAO) JoinLeague(leagueId int, userId int) error
- func (_m *LeaguesDAO) SetLeaguePermissions(leagueId int, userId int, permissions databaseAccess.LeaguePermissionsCore) error
- func (_m *LeaguesDAO) SetMarkdownFile(leagueId int, fileName string) error
- func (_m *LeaguesDAO) UpdateLeague(leagueId int, leagueInfo databaseAccess.LeagueCore) error
- type LoLApi
- type MdManager
- type RowArr
- type SessionManager
- func (_m *SessionManager) AuthenticateAndGetUserId(ctx *gin.Context) (int, error)
- func (_m *SessionManager) GetActiveLeague(ctx *gin.Context) (int, error)
- func (_m *SessionManager) LogIn(ctx *gin.Context, userId int) error
- func (_m *SessionManager) LogOut(ctx *gin.Context) error
- func (_m *SessionManager) SetActiveLeague(ctx *gin.Context, leagueId int) error
- type TeamsDAO
- func (_m *TeamsDAO) AddNewPlayer(leagueId int, playerInfo databaseAccess.PlayerCore) (int, error)
- func (_m *TeamsDAO) ChangeManagerPermissions(teamId int, userId int, ...) error
- func (_m *TeamsDAO) CreateTeam(leagueId int, userId int, teamInfo databaseAccess.TeamCore) (int, error)
- func (_m *TeamsDAO) CreateTeamWithIcon(leagueId int, userId int, teamInfo databaseAccess.TeamCore, iconSmall string, ...) (int, error)
- func (_m *TeamsDAO) DeleteTeam(teamId int) error
- func (_m *TeamsDAO) DoesPlayerExistInTeam(teamId int, playerId int) (bool, error)
- func (_m *TeamsDAO) DoesTeamExistInLeague(leagueId int, teamId int) (bool, error)
- func (_m *TeamsDAO) GetTeamInformation(teamId int) (*databaseAccess.TeamWithPlayers, error)
- func (_m *TeamsDAO) GetTeamPermissions(teamId int, userId int) (*databaseAccess.TeamPermissionsCore, error)
- func (_m *TeamsDAO) IsInfoInUse(leagueId int, teamId int, name string, tag string) (bool, string, error)
- func (_m *TeamsDAO) IsTeamActive(leagueId int, teamId int) (bool, error)
- func (_m *TeamsDAO) RemovePlayer(playerId int) error
- func (_m *TeamsDAO) UpdatePlayer(playerId int, playerInfo databaseAccess.PlayerCore) error
- func (_m *TeamsDAO) UpdateTeam(teamId int, teamInformation databaseAccess.TeamCore) error
- func (_m *TeamsDAO) UpdateTeamIcon(teamId int, small string, large string) error
- type UsersDAO
- func (_m *UsersDAO) CreateUser(email string, salt string, hash string) error
- func (_m *UsersDAO) GetAuthenticationInformation(email string) (*databaseAccess.UserAuthenticationDTO, error)
- func (_m *UsersDAO) GetUserProfile(userId int) (*databaseAccess.User, error)
- func (_m *UsersDAO) IsEmailInUse(email string) (bool, error)
- type Validator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Access ¶
Access is an autogenerated mock type for the Access type
func (*Access) Game ¶
func (_m *Access) Game(accessType databaseAccess.AccessType, leagueId int, gameId int, userId int) (bool, error)
Game provides a mock function with given fields: accessType, leagueId, gameId, userId
func (*Access) League ¶
func (_m *Access) League(accessType databaseAccess.AccessType, leagueId int, userId int) (bool, error)
League provides a mock function with given fields: accessType, leagueId, userId
func (*Access) Player ¶
func (_m *Access) Player(accessType databaseAccess.AccessType, leagueId int, teamId int, playerId int, userId int) (bool, error)
Player provides a mock function with given fields: accessType, leagueId, teamId, playerId, userId
func (*Access) Team ¶
func (_m *Access) Team(accessType databaseAccess.AccessType, leagueId int, teamId int, userId int) (bool, error)
Team provides a mock function with given fields: accessType, leagueId, teamId, userId
type Config ¶
Config is an autogenerated mock type for the Config type
func (*Config) GetDbConnString ¶
GetDbConnString provides a mock function with given fields:
func (*Config) GetIconsDir ¶
GetIconsDir provides a mock function with given fields:
func (*Config) GetLeagueOfLegendsApiKey ¶
GetLeagueOfLegendsApiKey provides a mock function with given fields:
func (*Config) GetMarkdownDir ¶
GetMarkdownDir provides a mock function with given fields:
func (*Config) GetPortString ¶
GetPortString provides a mock function with given fields:
type GamesDAO ¶
GamesDAO is an autogenerated mock type for the GamesDAO type
func (*GamesDAO) AddExternalId ¶
AddExternalId provides a mock function with given fields: gameId, externalId
func (*GamesDAO) CreateGame ¶
func (_m *GamesDAO) CreateGame(leagueId int, gameInformation databaseAccess.GameCreationInformation) (int, error)
CreateGame provides a mock function with given fields: leagueId, gameInformation
func (*GamesDAO) DeleteGame ¶
DeleteGame provides a mock function with given fields: gameId
func (*GamesDAO) DoesExistConflict ¶
DoesExistConflict provides a mock function with given fields: team1Id, team2Id, gameTime
func (*GamesDAO) GetAllGamesInLeague ¶
func (_m *GamesDAO) GetAllGamesInLeague(leagueId int) ([]*databaseAccess.Game, error)
GetAllGamesInLeague provides a mock function with given fields: leagueId
func (*GamesDAO) GetGameInformation ¶
func (_m *GamesDAO) GetGameInformation(gameId int) (*databaseAccess.Game, error)
GetGameInformation provides a mock function with given fields: gameId
func (*GamesDAO) GetGameInformationFromExternalId ¶
func (_m *GamesDAO) GetGameInformationFromExternalId(externalId string) (*databaseAccess.Game, error)
GetGameInformationFromExternalId provides a mock function with given fields: externalId
func (*GamesDAO) HasReportResultPermissions ¶
HasReportResultPermissions provides a mock function with given fields: leagueId, gameId, userId
func (*GamesDAO) ReportGame ¶
func (_m *GamesDAO) ReportGame(gameId int, gameResult databaseAccess.GameResult) error
ReportGame provides a mock function with given fields: gameId, gameResult
type IScheduler ¶
IScheduler is an autogenerated mock type for the IScheduler type
func (*IScheduler) AddWeeklyAvailability ¶
func (_m *IScheduler) AddWeeklyAvailability(dayOfWeek time.Weekday, hour int, minute int, duration time.Duration)
AddWeeklyAvailability provides a mock function with given fields: dayOfWeek, hour, minute, duration
func (*IScheduler) GetSchedule ¶
func (_m *IScheduler) GetSchedule() []scheduler.Game
GetSchedule provides a mock function with given fields:
func (*IScheduler) InitScheduler ¶
func (_m *IScheduler) InitScheduler(tournamentType int, roundsPerWeek int, concurrentGameNum int, gameDuration time.Duration, start time.Time, end time.Time, teams []int)
InitScheduler provides a mock function with given fields: tournamentType, roundsPerWeek, concurrentGameNum, gameDuration, start, end, teams
type IconManager ¶
IconManager is an autogenerated mock type for the IconManager type
func (*IconManager) StoreNewIcon ¶
StoreNewIcon provides a mock function with given fields: ctx
type LeagueOfLegendsDAO ¶
LeagueOfLegendsDAO is an autogenerated mock type for the LeagueOfLegendsDAO type
func (*LeagueOfLegendsDAO) GetChampionStats ¶
func (_m *LeagueOfLegendsDAO) GetChampionStats(leagueId int) ([]*databaseAccess.ChampionStats, error)
GetChampionStats provides a mock function with given fields: leagueId
func (*LeagueOfLegendsDAO) GetPlayerStats ¶
func (_m *LeagueOfLegendsDAO) GetPlayerStats(leagueId int) ([]*databaseAccess.PlayerStats, error)
GetPlayerStats provides a mock function with given fields: leagueId
func (*LeagueOfLegendsDAO) GetTeamStats ¶
func (_m *LeagueOfLegendsDAO) GetTeamStats(leagueId int) ([]*databaseAccess.TeamStats, error)
GetTeamStats provides a mock function with given fields: leagueId
func (*LeagueOfLegendsDAO) ReportEndGameStats ¶
func (_m *LeagueOfLegendsDAO) ReportEndGameStats(leagueId int, gameId int, winTeamId int, loseTeamId int, match *lolApi.MatchInformation) error
ReportEndGameStats provides a mock function with given fields: leagueId, gameId, winTeamId, loseTeamId, match
type LeaguesDAO ¶
LeaguesDAO is an autogenerated mock type for the LeaguesDAO type
func (*LeaguesDAO) AddAvailability ¶
func (_m *LeaguesDAO) AddAvailability(leagueId int, availability databaseAccess.AvailabilityCore) (int, error)
AddAvailability provides a mock function with given fields: leagueId, availability
func (*LeaguesDAO) AddWeeklyAvailability ¶
func (_m *LeaguesDAO) AddWeeklyAvailability(leagueId int, availability databaseAccess.WeeklyAvailabilityCore) (int, error)
AddWeeklyAvailability provides a mock function with given fields: leagueId, availability
func (*LeaguesDAO) CanJoinLeague ¶
func (_m *LeaguesDAO) CanJoinLeague(leagueId int, userId int) (bool, error)
CanJoinLeague provides a mock function with given fields: leagueId, userId
func (*LeaguesDAO) CreateLeague ¶
func (_m *LeaguesDAO) CreateLeague(userId int, leagueInfo databaseAccess.LeagueCore) (int, error)
CreateLeague provides a mock function with given fields: userId, leagueInfo
func (*LeaguesDAO) DeleteAvailability ¶
func (_m *LeaguesDAO) DeleteAvailability(leagueId int, availabilityId int) error
DeleteAvailability provides a mock function with given fields: leagueId, availabilityId
func (*LeaguesDAO) DeleteWeeklyAvailability ¶
func (_m *LeaguesDAO) DeleteWeeklyAvailability(leagueId int, availabilityId int) error
DeleteWeeklyAvailability provides a mock function with given fields: leagueId, availabilityId
func (*LeaguesDAO) EditWeeklyAvailability ¶
func (_m *LeaguesDAO) EditWeeklyAvailability(leagueId int, availabilityId int, availability databaseAccess.WeeklyAvailabilityCore) (int, error)
EditWeeklyAvailability provides a mock function with given fields: leagueId, availabilityId, availability
func (*LeaguesDAO) GetAvailabilities ¶
func (_m *LeaguesDAO) GetAvailabilities(leagueId int) ([]*databaseAccess.Availability, error)
GetAvailabilities provides a mock function with given fields: leagueId
func (*LeaguesDAO) GetLeagueInformation ¶
func (_m *LeaguesDAO) GetLeagueInformation(leagueId int) (*databaseAccess.League, error)
GetLeagueInformation provides a mock function with given fields: leagueId
func (*LeaguesDAO) GetMarkdownFile ¶
func (_m *LeaguesDAO) GetMarkdownFile(leagueId int) (string, error)
GetMarkdownFile provides a mock function with given fields: leagueId
func (*LeaguesDAO) GetPublicLeagueList ¶
func (_m *LeaguesDAO) GetPublicLeagueList() ([]*databaseAccess.League, error)
GetPublicLeagueList provides a mock function with given fields:
func (*LeaguesDAO) GetTeamManagerInformation ¶
func (_m *LeaguesDAO) GetTeamManagerInformation(leagueId int) ([]*databaseAccess.TeamWithManagers, error)
GetTeamManagerInformation provides a mock function with given fields: leagueId
func (*LeaguesDAO) GetWeeklyAvailabilities ¶
func (_m *LeaguesDAO) GetWeeklyAvailabilities(leagueId int) ([]*databaseAccess.WeeklyAvailability, error)
GetWeeklyAvailabilities provides a mock function with given fields: leagueId
func (*LeaguesDAO) IsLeagueViewable ¶
func (_m *LeaguesDAO) IsLeagueViewable(leagueId int, userId int) (bool, error)
IsLeagueViewable provides a mock function with given fields: leagueId, userId
func (*LeaguesDAO) IsNameInUse ¶
func (_m *LeaguesDAO) IsNameInUse(leagueId int, name string) (bool, error)
IsNameInUse provides a mock function with given fields: leagueId, name
func (*LeaguesDAO) JoinLeague ¶
func (_m *LeaguesDAO) JoinLeague(leagueId int, userId int) error
JoinLeague provides a mock function with given fields: leagueId, userId
func (*LeaguesDAO) SetLeaguePermissions ¶
func (_m *LeaguesDAO) SetLeaguePermissions(leagueId int, userId int, permissions databaseAccess.LeaguePermissionsCore) error
SetLeaguePermissions provides a mock function with given fields: leagueId, userId, permissions
func (*LeaguesDAO) SetMarkdownFile ¶
func (_m *LeaguesDAO) SetMarkdownFile(leagueId int, fileName string) error
SetMarkdownFile provides a mock function with given fields: leagueId, fileName
func (*LeaguesDAO) UpdateLeague ¶
func (_m *LeaguesDAO) UpdateLeague(leagueId int, leagueInfo databaseAccess.LeagueCore) error
UpdateLeague provides a mock function with given fields: leagueId, leagueInfo
type LoLApi ¶
LoLApi is an autogenerated mock type for the LoLApi type
func (*LoLApi) GetMatchStats ¶
func (_m *LoLApi) GetMatchStats(id string) (*lolApi.MatchInformation, error)
GetMatchStats provides a mock function with given fields: id
func (*LoLApi) GetSummonerId ¶
GetSummonerId provides a mock function with given fields: name
func (*LoLApi) GetSummonerInformation ¶
func (_m *LoLApi) GetSummonerInformation(ids []string) map[string]*lolApi.SummonerInformation
GetSummonerInformation provides a mock function with given fields: ids
type MdManager ¶
MdManager is an autogenerated mock type for the MdManager type
func (*MdManager) GetMarkdown ¶
GetMarkdown provides a mock function with given fields: fileName
type SessionManager ¶
SessionManager is an autogenerated mock type for the SessionManager type
func (*SessionManager) AuthenticateAndGetUserId ¶
func (_m *SessionManager) AuthenticateAndGetUserId(ctx *gin.Context) (int, error)
AuthenticateAndGetUserId provides a mock function with given fields: ctx
func (*SessionManager) GetActiveLeague ¶
func (_m *SessionManager) GetActiveLeague(ctx *gin.Context) (int, error)
GetActiveLeague provides a mock function with given fields: ctx
func (*SessionManager) LogIn ¶
func (_m *SessionManager) LogIn(ctx *gin.Context, userId int) error
LogIn provides a mock function with given fields: ctx, userId
func (*SessionManager) LogOut ¶
func (_m *SessionManager) LogOut(ctx *gin.Context) error
LogOut provides a mock function with given fields: ctx
func (*SessionManager) SetActiveLeague ¶
func (_m *SessionManager) SetActiveLeague(ctx *gin.Context, leagueId int) error
SetActiveLeague provides a mock function with given fields: ctx, leagueId
type TeamsDAO ¶
TeamsDAO is an autogenerated mock type for the TeamsDAO type
func (*TeamsDAO) AddNewPlayer ¶
func (_m *TeamsDAO) AddNewPlayer(leagueId int, playerInfo databaseAccess.PlayerCore) (int, error)
CreatePlayer provides a mock function with given fields: leagueId, playerInfo
func (*TeamsDAO) ChangeManagerPermissions ¶
func (_m *TeamsDAO) ChangeManagerPermissions(teamId int, userId int, teamPermissionInformation databaseAccess.TeamPermissionsCore) error
ChangeManagerPermissions provides a mock function with given fields: teamId, userId, teamPermissionInformation
func (*TeamsDAO) CreateTeam ¶
func (_m *TeamsDAO) CreateTeam(leagueId int, userId int, teamInfo databaseAccess.TeamCore) (int, error)
CreateTeam provides a mock function with given fields: leagueId, userId, teamInfo
func (*TeamsDAO) CreateTeamWithIcon ¶
func (_m *TeamsDAO) CreateTeamWithIcon(leagueId int, userId int, teamInfo databaseAccess.TeamCore, iconSmall string, iconLarge string) (int, error)
CreateTeamWithIcon provides a mock function with given fields: leagueId, userId, teamInfo, iconSmall, iconLarge
func (*TeamsDAO) DeleteTeam ¶
DeleteTeam provides a mock function with given fields: teamId
func (*TeamsDAO) DoesPlayerExistInTeam ¶
DoesPlayerExistInTeam provides a mock function with given fields: teamId, playerId
func (*TeamsDAO) DoesTeamExistInLeague ¶
DoesTeamExistInLeague provides a mock function with given fields: leagueId, teamId
func (*TeamsDAO) GetTeamInformation ¶
func (_m *TeamsDAO) GetTeamInformation(teamId int) (*databaseAccess.TeamWithPlayers, error)
GetTeamInformation provides a mock function with given fields: teamId
func (*TeamsDAO) GetTeamPermissions ¶
func (_m *TeamsDAO) GetTeamPermissions(teamId int, userId int) (*databaseAccess.TeamPermissionsCore, error)
GetTeamPermissions provides a mock function with given fields: teamId, userId
func (*TeamsDAO) IsInfoInUse ¶
func (_m *TeamsDAO) IsInfoInUse(leagueId int, teamId int, name string, tag string) (bool, string, error)
IsInfoInUse provides a mock function with given fields: leagueId, teamId, name, tag
func (*TeamsDAO) IsTeamActive ¶
IsTeamActive provides a mock function with given fields: leagueId, teamId
func (*TeamsDAO) RemovePlayer ¶
DeletePlayer provides a mock function with given fields: playerId
func (*TeamsDAO) UpdatePlayer ¶
func (_m *TeamsDAO) UpdatePlayer(playerId int, playerInfo databaseAccess.PlayerCore) error
UpdatePlayer provides a mock function with given fields: playerId, playerInfo
func (*TeamsDAO) UpdateTeam ¶
func (_m *TeamsDAO) UpdateTeam(teamId int, teamInformation databaseAccess.TeamCore) error
UpdateTeam provides a mock function with given fields: teamId, teamInformation
type UsersDAO ¶
UsersDAO is an autogenerated mock type for the UsersDAO type
func (*UsersDAO) CreateUser ¶
CreateUser provides a mock function with given fields: email, salt, hash
func (*UsersDAO) GetAuthenticationInformation ¶
func (_m *UsersDAO) GetAuthenticationInformation(email string) (*databaseAccess.UserAuthenticationDTO, error)
GetAuthenticationInformation provides a mock function with given fields: email
func (*UsersDAO) GetUserProfile ¶
func (_m *UsersDAO) GetUserProfile(userId int) (*databaseAccess.User, error)
GetUserWithPermissions provides a mock function with given fields: userId