Documentation
¶
Index ¶
Constants ¶
View Source
const ( ErrMissingCredentials = Error("missing credentials") ErrInitConnection = Error("error while initializing connection") )
View Source
const ( BaseURL = "https://ent.cesi.fr/" WayfBaseURL = "https://wayf.cesi.fr" CalendarURL = "https://ent.cesi.fr/api/seance/all?start=%s&end=%s&codePersonne=%d" ProfileURL = "https://ent.cesi.fr/%s/emploi-du-temps/%s" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cesi ¶
type Cesi struct { User *User // contains filtered or unexported fields }
func (*Cesi) GetCurrentUser ¶
type Establishment ¶
type Establishment struct {
Name string
}
type Event ¶
type Event struct { Code string `json:"code"` Title string `json:"title"` AllDay bool `json:"allDay"` Nightly bool `json:"nightly"` Start time.Time `json:"start"` End time.Time `json:"end"` Url string `json:"url"` NomModule string `json:"nomModule"` Matiere interface{} `json:"matiere"` Theme string `json:"theme"` Salles []struct { NomSalle string `json:"nomSalle"` } `json:"salles"` Intervenants []struct { SousTitre interface{} `json:"sousTitre"` Profils interface{} `json:"profils"` GroupesPedagogiques interface{} `json:"groupesPedagogiques"` UrlFiche string `json:"urlFiche"` UrlPhoto string `json:"urlPhoto"` Nom string `json:"nom"` Prenom string `json:"prenom"` Code string `json:"code"` AdresseMail string `json:"adresseMail"` UrlAgenda string `json:"urlAgenda"` Sessions []interface{} `json:"sessions"` Inconnu bool `json:"inconnu"` } `json:"intervenants"` ParticipantsPersonne interface{} `json:"participantsPersonne"` Participants []struct { LibelleGroupe string `json:"libelleGroupe"` CodeGroupe string `json:"codeGroupe"` CodeSession string `json:"codeSession"` } `json:"participants"` }
func (*Event) UnmarshalJSON ¶
type SAMLRequestData ¶
type User ¶
type User struct { ID int FirstName string LastName string Email string Phone string Promotion string Session *Session Establishments []*Establishment // contains filtered or unexported fields }
func (*User) GetCalendar ¶
func (*User) GetIdentifier ¶
Click to show internal directories.
Click to hide internal directories.