Documentation ¶
Index ¶
- type DefaultMemberController
- type DefaultPresenceController
- type DefaultSeasonController
- func (c *DefaultSeasonController) GetEdit(id string) Page
- func (c *DefaultSeasonController) GetIndex() Page
- func (c *DefaultSeasonController) GetNew() Page
- func (c *DefaultSeasonController) PostEdit(season *SeasonDto, delete bool) Page
- func (c *DefaultSeasonController) PostNew(season *SeasonDto) Page
- type DefaultSeasonGameController
- func (c *DefaultSeasonGameController) GetEdit(gameId string) Page
- func (c *DefaultSeasonGameController) GetIndex(seasonId string) Page
- func (c *DefaultSeasonGameController) GetNew() Page
- func (c *DefaultSeasonGameController) PostEdit(game *SeasonGameDto, delete bool) Page
- func (c *DefaultSeasonGameController) PostNew(game *SeasonGameDto) Page
- type ErrorPage
- type GameStats
- type HtmlPage
- type MemberController
- type MemberDto
- type MemberPresenceDto
- type Page
- type PresenceController
- type RedirectPage
- type SeasonController
- type SeasonDto
- type SeasonGameController
- type SeasonGameDto
- type SeasonPresenceDto
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultMemberController ¶
type DefaultMemberController struct {
// contains filtered or unexported fields
}
func (*DefaultMemberController) GetEdit ¶
func (c *DefaultMemberController) GetEdit(id string) Page
func (*DefaultMemberController) GetIndex ¶
func (c *DefaultMemberController) GetIndex() Page
func (*DefaultMemberController) GetNew ¶
func (c *DefaultMemberController) GetNew() Page
func (*DefaultMemberController) PostEdit ¶
func (c *DefaultMemberController) PostEdit(member *MemberDto) Page
func (*DefaultMemberController) PostNew ¶
func (c *DefaultMemberController) PostNew(member *MemberDto) Page
type DefaultPresenceController ¶
type DefaultPresenceController struct {
// contains filtered or unexported fields
}
func (*DefaultPresenceController) GetEdit ¶
func (c *DefaultPresenceController) GetEdit(gameId string) Page
func (*DefaultPresenceController) GetEditPost ¶
func (c *DefaultPresenceController) GetEditPost(gameId string, presentMembers []string) Page
func (*DefaultPresenceController) GetIndex ¶
func (c *DefaultPresenceController) GetIndex() Page
type DefaultSeasonController ¶
type DefaultSeasonController struct {
// contains filtered or unexported fields
}
func (*DefaultSeasonController) GetEdit ¶
func (c *DefaultSeasonController) GetEdit(id string) Page
func (*DefaultSeasonController) GetIndex ¶
func (c *DefaultSeasonController) GetIndex() Page
func (*DefaultSeasonController) GetNew ¶
func (c *DefaultSeasonController) GetNew() Page
func (*DefaultSeasonController) PostEdit ¶
func (c *DefaultSeasonController) PostEdit(season *SeasonDto, delete bool) Page
func (*DefaultSeasonController) PostNew ¶
func (c *DefaultSeasonController) PostNew(season *SeasonDto) Page
type DefaultSeasonGameController ¶
type DefaultSeasonGameController struct {
// contains filtered or unexported fields
}
func (*DefaultSeasonGameController) GetEdit ¶
func (c *DefaultSeasonGameController) GetEdit(gameId string) Page
func (*DefaultSeasonGameController) GetIndex ¶
func (c *DefaultSeasonGameController) GetIndex(seasonId string) Page
func (*DefaultSeasonGameController) GetNew ¶
func (c *DefaultSeasonGameController) GetNew() Page
func (*DefaultSeasonGameController) PostEdit ¶
func (c *DefaultSeasonGameController) PostEdit(game *SeasonGameDto, delete bool) Page
func (*DefaultSeasonGameController) PostNew ¶
func (c *DefaultSeasonGameController) PostNew(game *SeasonGameDto) Page
type MemberController ¶
type MemberController interface { GetIndex() Page GetNew() Page PostNew(member *MemberDto) Page GetEdit(id string) Page PostEdit(member *MemberDto) Page }
func NewMemberController ¶
func NewMemberController() MemberController
type MemberDto ¶
type MemberDto struct { ID string `form:"id"` FirstName string `form:"first_name"` LastName string `form:"last_name"` Active bool `form:"active"` }
func CreateMemberDto ¶
func CreateMemberDto(member repository.Member) MemberDto
func (*MemberDto) ToModel ¶
func (dto *MemberDto) ToModel() repository.SaveMemberParams
type MemberPresenceDto ¶
type PresenceController ¶
type PresenceController interface { GetIndex() Page GetEdit(gameId string) Page GetEditPost(gameId string, presentMembers []string) Page }
func NewPresenceController ¶
func NewPresenceController() PresenceController
type RedirectPage ¶
type RedirectPage struct {
Redirect string
}
func (*RedirectPage) Render ¶
func (p *RedirectPage) Render(ctx *gin.Context)
type SeasonController ¶
type SeasonController interface { GetIndex() Page GetNew() Page PostNew(season *SeasonDto) Page GetEdit(id string) Page PostEdit(season *SeasonDto, delete bool) Page }
func NewSeasonController ¶
func NewSeasonController() SeasonController
type SeasonDto ¶
type SeasonDto struct { ID string `form:"id"` Name string `form:"name"` Created string `form:"created"` }
func CreateSeasonDto ¶
func CreateSeasonDto(season repository.Season) SeasonDto
func (*SeasonDto) ToModel ¶
func (dto *SeasonDto) ToModel() repository.SaveSeasonParams
type SeasonGameController ¶
type SeasonGameController interface { GetIndex(seasonId string) Page GetNew() Page PostNew(game *SeasonGameDto) Page GetEdit(gameId string) Page PostEdit(game *SeasonGameDto, delete bool) Page }
func NewSeasonGameController ¶
func NewSeasonGameController() SeasonGameController
type SeasonGameDto ¶
type SeasonGameDto struct { ID string `form:"id"` Opponent string `form:"opponent"` Home bool `form:"home"` Mode string `form:"mode"` Date string `form:"date"` SeasonID string `form:"season_id"` Season string }
func CreateSeasonGameDto ¶
func CreateSeasonGameDto(game repository.SeasonGame, seasonName string) SeasonGameDto
func (*SeasonGameDto) ToModel ¶
func (dto *SeasonGameDto) ToModel() repository.SaveSeasonGameParams
type SeasonPresenceDto ¶
type SeasonPresenceDto struct { Name string MemberPresence []MemberPresenceDto GameStats }
func CreateSeasonPresenceDto ¶
func CreateSeasonPresenceDto(seasonPresence []repository.FindSeasonPresenceRow, memberPresence []repository.FindMemberPresenceRow) []SeasonPresenceDto
Click to show internal directories.
Click to hide internal directories.