repository

package
v1.0.2-0...-f48ee91 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GradesRepository

type GradesRepository interface {
	GetPitchings(playerID string) (pitchings []data.PICHERGRADES)
	GetBattings(playerID string) (battings []data.BATTERGRADES)
	GetCareer(playerID string) (career data.CAREER)
	InsertCareers(careers []data.CAREER)
	InsertPicherGrades(key string, picher data.PICHERGRADES)
	InsertBatterGrades(playerID string, batterGrades data.BATTERGRADES)
	SearchCareerByName(name string) (careers []data.CAREER)
}

GradesRepository チーム成績データアクセスを管理するインターフェース

type SyastemRepository

type SyastemRepository interface {
	GetSystemSetting(setting string) (value string)
	SetSystemSetting(setting string, value string)
}

SyastemRepository システム設定を登録するインターフェース

type TeamRepository

type TeamRepository interface {
	InsertTeamPitchings(teamPitching teamData.TeamPitching)
	GetTeamPitchings(years []int) (teamPitchingMap map[string][]teamData.TeamPitching)
	GetTeamPitchingByTeamIDAndYear(year string, teamID string) (teamPitching teamData.TeamPitching)
	GetTeamPitchingMax() (maxStrikeOutRate float64, maxRunsAllowed int)
	GetTeamPitchingMin() (minStrikeOutRate float64, minRunsAllowed int)
	InsertTeamBattings(teamBatting teamData.TeamBatting)
	GetTeamBattings(years []int) (teamBattingMap map[string][]teamData.TeamBatting)
	GetTeamBattingByTeamIDAndYear(teamID string, year string) (teamBatting teamData.TeamBatting)
	GetTeamBattingMax() (maxHomeRun int, maxSluggingPercentage float64, maxOnBasePercentage float64)
	GetTeamBattingMin() (minHomeRun int, minSluggingPercentage float64, minOnBasePercentage float64)
	GetTeamStats(years []int) (teamStatsMap map[string][]teamData.TeamLeagueStats)
	InsertPythagoreanExpectation(teamBattings []teamData.TeamBatting, teamPitchings []teamData.TeamPitching)
	InsertTeamLeagueStats(teamLeagueStats []teamData.TeamLeagueStats)
	InsertMatchResults(teamMatchResults []teamData.TeamMatchResults)
	GetTeamName(teamID string) (teamName string)
	GetPlayersByTeamIDAndYear(teamID string, year string) (players []data.PLAYER)
	InsertTeamPlayers(members []team.Member)
	InsertMembersCsv(fileName string)
	IsRegisteredMembersCsv(fileName string) bool
}

TeamRepository チーム成績データアクセスを管理するインターフェース

Directories

Path Synopsis
Package mock_repository is a generated GoMock package.
Package mock_repository is a generated GoMock package.

Jump to

Keyboard shortcuts

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