handlers

package
v0.0.0-...-287d283 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	DB *gorm.DB
}

func (*Handler) CreateSport

func (h *Handler) CreateSport(c echo.Context) error

CreateSport creates a sport

func (*Handler) CreateTeam

func (h *Handler) CreateTeam(c echo.Context) error

CreateTeam creates a team

func (*Handler) DeleteSport

func (h *Handler) DeleteSport(c echo.Context) error

DeleteSport deletes an existing sport

func (*Handler) DeleteTeam

func (h *Handler) DeleteTeam(c echo.Context) error

DeleteTeam deletes an existing team

func (*Handler) GenerateTeams

func (h *Handler) GenerateTeams(c echo.Context) error

GenerateTeams generates a TeamSet based on the provided players and target sport

func (*Handler) GetPlayer

func (h *Handler) GetPlayer(c echo.Context) error

func (*Handler) GetSport

func (h *Handler) GetSport(c echo.Context) error

GetSport retrieves an existing sport

func (*Handler) GetTeam

func (h *Handler) GetTeam(c echo.Context) error

GetTeam retrieves an existing sport

func (*Handler) Health

func (h *Handler) Health(c echo.Context) error

Health returns a simple JSON response, indicating that the server is alive

func (*Handler) ListSports

func (h *Handler) ListSports(c echo.Context) error

ListSports list all existing sports

func (*Handler) ListTeams

func (h *Handler) ListTeams(c echo.Context) error

ListTeams list all existing teams

func (*Handler) UpdateSport

func (h *Handler) UpdateSport(c echo.Context) error

UpdateSport updates an existing sport

func (*Handler) UpdateTeam

func (h *Handler) UpdateTeam(c echo.Context) error

UpdateTeam updates an existing team

Jump to

Keyboard shortcuts

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