Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPService ¶
HTTPService ...
type Player ¶
type Player struct { ID int64 `db:"id"` Name string `db:"name"` Num int64 `db:"num"` Team int64 `db:"idteamFK"` }
Player ...
type Service ¶
type Service interface { AddTeam(*Team) (*Team, error) GetAllTeams() ([]*Team, error) GetTeam(int64) (*Team, error) DeleteTeam(int64) error EditTeam(string, int64) error AddPlayer(*Player) (*Player, error) GetPlayersByTeam(int64) ([]*Player, error) GetAllPlayers() ([]*Player, error) }
Service interface
Ya se que no deberia recibir parametros de tipo string pero no encontre la forma de poder convertir los parametros de la request en un estructura
Click to show internal directories.
Click to hide internal directories.