Documentation ¶
Index ¶
- type Affiliation
- type Document
- type Image
- type News
- type Player
- type Programme
- type ProgrammeSeason
- type Session
- func (s *Session) AddAffiliation(affiliation Affiliation, token string) (a Affiliation, err error)
- func (s *Session) AddDocument(document Document, token string) (d Document, err error)
- func (s *Session) AddImage(image Image, token string) (i Image, err error)
- func (s *Session) AddNews(news News, token string) (n News, err error)
- func (s *Session) AddPlayer(player Player, token string) (p Player, err error)
- func (s *Session) AddProgramme(p1 Programme, token string) (p Programme, err error)
- func (s *Session) AddProgrammeSeason(programmeSeason ProgrammeSeason, token string) (p ProgrammeSeason, err error)
- func (s *Session) AddSponsor(sp1 Sponsor, token string) (sp Sponsor, err error)
- func (s *Session) AddTeam(team Team, token string) (t Team, err error)
- func (s *Session) AddUser(user UserFull, token string) (u UserFull, err error)
- func (s *Session) AddWhatsOn(whatsOn WhatsOn, token string) (w WhatsOn, err error)
- func (s *Session) DeleteAffiliation(id uint64, token string) (err error)
- func (s *Session) DeleteDocument(id uint64, token string) (err error)
- func (s *Session) DeleteImage(id uint64, token string) (err error)
- func (s *Session) DeleteNews(id uint64, token string) (err error)
- func (s *Session) DeletePlayer(id uint64, token string) (err error)
- func (s *Session) DeleteProgramme(id uint64, token string) (err error)
- func (s *Session) DeleteProgrammeSeason(id uint64, token string) (err error)
- func (s *Session) DeleteSponsor(id uint64, token string) (err error)
- func (s *Session) DeleteTeam(id uint64, token string) (err error)
- func (s *Session) DeleteUserFromEmail(email, token string) (err error)
- func (s *Session) DeleteUserFromId(id uint64, token string) (err error)
- func (s *Session) DeleteWhatsOn(id uint64, token string) (err error)
- func (s *Session) EditDocument(document Document, token string) (d Document, err error)
- func (s *Session) EditNews(news News, token string) (p News, err error)
- func (s *Session) EditPlayer(player Player, token string) (p Player, err error)
- func (s *Session) EditProgrammeSeason(programmeSeason ProgrammeSeason, token string) (p ProgrammeSeason, err error)
- func (s *Session) EditSponsor(sp1 Sponsor, token string) (sp Sponsor, err error)
- func (s *Session) EditTeam(team Team, token string) (t Team, err error)
- func (s *Session) EditUser(user UserFull, token string) (u UserFull, err error)
- func (s *Session) EditWhatsOn(whatsOn WhatsOn, token string) (w WhatsOn, err error)
- func (s *Session) GetAffiliationById(id uint64) (a Affiliation, err error)
- func (s *Session) GetDocumentById(id uint64) (d Document, err error)
- func (s *Session) GetImageById(id uint64) (i Image, err error)
- func (s *Session) GetNewsById(id uint64) (n News, err error)
- func (s *Session) GetNewsLatest() (n News, err error)
- func (s *Session) GetPlayerById(id uint64) (p Player, err error)
- func (s *Session) GetProgrammeById(id uint64) (p Programme, err error)
- func (s *Session) GetProgrammeSeasonById(id uint64) (p ProgrammeSeason, err error)
- func (s *Session) GetSponsorById(id uint64) (sp Sponsor, err error)
- func (s *Session) GetTeamById(id uint64) (t Team, err error)
- func (s *Session) GetUserByEmail(email, token string) (u User, err error)
- func (s *Session) GetUserByEmailFull(email, token string) (u UserFull, err error)
- func (s *Session) GetUserById(id uint64, token string) (u User, err error)
- func (s *Session) GetUserByIdFull(id uint64, token string) (u UserFull, err error)
- func (s *Session) GetUserByToken(token string) (u User, err error)
- func (s *Session) GetUserByTokenFull(token string) (u UserFull, err error)
- func (s *Session) GetWhatsOnById(id uint64) (w WhatsOn, err error)
- func (s *Session) GetWhatsOnLatest() (w WhatsOn, err error)
- func (s *Session) ListActiveTeams() (t []Team, err error)
- func (s *Session) ListAllAffiliations() (a []Affiliation, err error)
- func (s *Session) ListAllDocuments() (d []Document, err error)
- func (s *Session) ListAllImages() (i []Image, err error)
- func (s *Session) ListAllNews() (n []News, err error)
- func (s *Session) ListAllPlayers(token string) (p []Player, err error)
- func (s *Session) ListAllPlayersByTeam(teamId uint64) (p []Player, err error)
- func (s *Session) ListAllProgrammeSeasons() (p []ProgrammeSeason, err error)
- func (s *Session) ListAllProgrammes() (p []Programme, err error)
- func (s *Session) ListAllSponsors() (sp []Sponsor, err error)
- func (s *Session) ListAllSponsorsByTeamId(teamId uint64) (sponsors []Sponsor, err error)
- func (s *Session) ListAllSponsorsMinimal() (sp []Sponsor, err error)
- func (s *Session) ListAllTeams(token string) (t []Team, err error)
- func (s *Session) ListAllUsers(token string) (u []User, err error)
- func (s *Session) ListAllWhatsOn() (w []WhatsOn, err error)
- func (s *Session) ListAllWhatsOnEventFuture() (w []WhatsOn, err error)
- func (s *Session) ListAllWhatsOnEventPast() (w []WhatsOn, err error)
- func (s *Session) ListContactUsers() (u []User, err error)
- func (s *Session) ListTeamManagersUsers(teamId uint64) (u []User, err error)
- type Sponsor
- type Team
- type User
- type UserFull
- type WhatsOn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Affiliation ¶
type ProgrammeSeason ¶
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
Session represents an open API session.
func NewSession ¶
NewSession constructs a new Session with a given url.
func (*Session) AddAffiliation ¶
func (s *Session) AddAffiliation(affiliation Affiliation, token string) (a Affiliation, err error)
func (*Session) AddDocument ¶
func (*Session) AddProgramme ¶
func (*Session) AddProgrammeSeason ¶
func (s *Session) AddProgrammeSeason(programmeSeason ProgrammeSeason, token string) (p ProgrammeSeason, err error)
func (*Session) AddSponsor ¶
func (*Session) AddWhatsOn ¶
func (*Session) DeleteAffiliation ¶
func (*Session) DeleteDocument ¶
func (*Session) DeleteProgramme ¶
func (*Session) DeleteProgrammeSeason ¶
func (*Session) DeleteSponsor ¶
func (*Session) DeleteUserFromEmail ¶
func (*Session) DeleteUserFromId ¶
func (*Session) DeleteWhatsOn ¶
func (*Session) EditDocument ¶
func (*Session) EditPlayer ¶
func (*Session) EditProgrammeSeason ¶
func (s *Session) EditProgrammeSeason(programmeSeason ProgrammeSeason, token string) (p ProgrammeSeason, err error)
func (*Session) EditSponsor ¶
func (*Session) EditWhatsOn ¶
func (*Session) GetAffiliationById ¶
func (s *Session) GetAffiliationById(id uint64) (a Affiliation, err error)
func (*Session) GetDocumentById ¶
func (*Session) GetNewsLatest ¶
func (*Session) GetProgrammeById ¶
func (*Session) GetProgrammeSeasonById ¶
func (s *Session) GetProgrammeSeasonById(id uint64) (p ProgrammeSeason, err error)
func (*Session) GetSponsorById ¶
func (*Session) GetUserByEmail ¶
func (*Session) GetUserByEmailFull ¶
func (*Session) GetUserById ¶
func (*Session) GetUserByIdFull ¶
func (*Session) GetUserByTokenFull ¶
func (*Session) GetWhatsOnLatest ¶
func (*Session) ListActiveTeams ¶
func (*Session) ListAllAffiliations ¶
func (s *Session) ListAllAffiliations() (a []Affiliation, err error)
func (*Session) ListAllDocuments ¶
func (*Session) ListAllImages ¶
func (*Session) ListAllNews ¶
func (*Session) ListAllPlayers ¶
func (*Session) ListAllPlayersByTeam ¶
func (*Session) ListAllProgrammeSeasons ¶
func (s *Session) ListAllProgrammeSeasons() (p []ProgrammeSeason, err error)
func (*Session) ListAllProgrammes ¶
func (*Session) ListAllSponsors ¶
func (*Session) ListAllSponsorsByTeamId ¶
func (*Session) ListAllSponsorsMinimal ¶
func (*Session) ListAllWhatsOn ¶
func (*Session) ListAllWhatsOnEventFuture ¶
func (*Session) ListAllWhatsOnEventPast ¶
func (*Session) ListContactUsers ¶
type Team ¶
type Team struct { Id uint64 `json:"id"` Name string `json:"name"` League string `json:"league,omitempty"` Division string `json:"division,omitempty"` LeagueTable string `json:"league_table,omitempty"` Fixtures string `json:"fixtures,omitempty"` Coach string `json:"coach,omitempty"` Physio string `json:"physio,omitempty"` FileName string `json:"file_name,omitempty"` Active bool `json:"active"` Youth bool `json:"youth"` Ages int `json:"ages"` }
type User ¶
type User struct { Id uint64 `json:"id"` Email string `json:"email"` Name string `json:"name"` Phone string `json:"phone,omitempty"` Team string `json:"team,omitempty"` Role string `json:"role"` FileName string `json:"file_name,omitempty"` }
User represents a user object to be used when not all data is required
type UserFull ¶
type UserFull struct { User Password string `json:"password,omitempty"` Temp string `json:"temp,omitempty"` Hash []byte `json:"hash,omitempty"` Salt []byte `json:"salt,omitempty"` LastLogin int64 `json:"last_login,omitempty"` CreatedAt int64 `json:"created_at,omitempty"` CreatedBy User `json:"created_by,omitempty"` UpdatedAt int64 `json:"updated_at,omitempty"` UpdatedBy User `json:"updated_by,omitempty"` DeletedAt int64 `json:"deleted_at,omitempty"` DeletedBy User `json:"deleted_by,omitempty"` }
UserFull represents a user and all columns
Source Files ¶
Click to show internal directories.
Click to hide internal directories.