controllers

package
v0.0.0-...-af09e16 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BookTicket

func BookTicket(c *gin.Context)

BookTicket handles the booking of a ticket for a game

func ClearCurrerntFixturesTable

func ClearCurrerntFixturesTable() error

func ClearGamesTable

func ClearGamesTable() error

func ClearNextFixturesTable

func ClearNextFixturesTable() error

func ClearStandingsTable

func ClearStandingsTable() error

func ClearTable

func ClearTable(tableName string) error

func CurrentFixtures

func CurrentFixtures(c *gin.Context)

func DeleteTicket

func DeleteTicket(c *gin.Context)

func Fixture

func Fixture(c *gin.Context)

func GetBookingPage

func GetBookingPage(c *gin.Context)

func GetHome

func GetHome(c *gin.Context)

func GetLogin

func GetLogin(c *gin.Context)

func GetRegister

func GetRegister(c *gin.Context)

func Login

func Login(c *gin.Context)

Need to create handlers now

func Logout

func Logout(c *gin.Context)

func NextFixtures

func NextFixtures(c *gin.Context)

func Register

func Register(c *gin.Context)

func RenderTemplate

func RenderTemplate(c *gin.Context, status int, template templ.Component) error

func SaveGamesToDatabase

func SaveGamesToDatabase(fixtures []gin.H, tableName string) error

func SaveStandingsToDatabase

func SaveStandingsToDatabase(standings []gin.H) error

func Standings

func Standings(c *gin.Context)

Types

type RoundsResponse

type RoundsResponse struct {
	Response []string `json:"response"`
}

Jump to

Keyboard shortcuts

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