Documentation
¶
Index ¶
- func AttendeesCreate(w http.ResponseWriter, r *http.Request)
- func AttendeesDelete(w http.ResponseWriter, r *http.Request)
- func AttendeesIndex(w http.ResponseWriter, r *http.Request)
- func AttendeesShowByIdPlanning(w http.ResponseWriter, r *http.Request)
- func AttendeesShowByIdVolunteer(w http.ResponseWriter, r *http.Request)
- func AttendeesUpdate(w http.ResponseWriter, r *http.Request)
- func AutoMonthlyStatCreate(w http.ResponseWriter, r *http.Request)
- func AutoNewMonthlyStat(archive_date ...string)
- func CreatePlanningsTable()
- func DeleteAttendeeById(id int) error
- func DeletePlanningById(id int) error
- func ForceMonthlyStatCreate(w http.ResponseWriter, r *http.Request)
- func InitRoutes()
- func Launcher()
- func MonthlyStatShowByDate(w http.ResponseWriter, r *http.Request)
- func MonthlyStatsIndex(w http.ResponseWriter, r *http.Request)
- func NewAttendee(att *Attendee)
- func NewMonthlyStat(stat *Planning_Stat)
- func NewPlanning(pla *Planning)
- func PlanningsCreate(w http.ResponseWriter, r *http.Request)
- func PlanningsDelete(w http.ResponseWriter, r *http.Request)
- func PlanningsIndex(w http.ResponseWriter, r *http.Request)
- func PlanningsShow(w http.ResponseWriter, r *http.Request)
- func PlanningsUpdate(w http.ResponseWriter, r *http.Request)
- func Specimen()
- func TheDb() *sql.DB
- func TheLogger() *logger.Logger
- func TheRouter() *mux.Router
- func TheSecureRouter() *mux.Router
- func UpdateAttendee(att *Attendee)
- func UpdateMonthlyStat(stat *Planning_Stat)
- func UpdatePlanning(pla *Planning)
- type Attendee
- type Attendees
- type Planning
- type Planning_Stat
- type Planning_Stats
- type Plannings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttendeesCreate ¶
func AttendeesCreate(w http.ResponseWriter, r *http.Request)
func AttendeesDelete ¶
func AttendeesDelete(w http.ResponseWriter, r *http.Request)
func AttendeesIndex ¶
func AttendeesIndex(w http.ResponseWriter, r *http.Request)
func AttendeesShowByIdPlanning ¶
func AttendeesShowByIdPlanning(w http.ResponseWriter, r *http.Request)
func AttendeesShowByIdVolunteer ¶
func AttendeesShowByIdVolunteer(w http.ResponseWriter, r *http.Request)
func AttendeesUpdate ¶
func AttendeesUpdate(w http.ResponseWriter, r *http.Request)
func AutoMonthlyStatCreate ¶
func AutoMonthlyStatCreate(w http.ResponseWriter, r *http.Request)
func AutoNewMonthlyStat ¶
func AutoNewMonthlyStat(archive_date ...string)
func CreatePlanningsTable ¶
func CreatePlanningsTable()
func DeleteAttendeeById ¶
func DeletePlanningById ¶
func ForceMonthlyStatCreate ¶
func ForceMonthlyStatCreate(w http.ResponseWriter, r *http.Request)
func InitRoutes ¶
func InitRoutes()
func MonthlyStatShowByDate ¶
func MonthlyStatShowByDate(w http.ResponseWriter, r *http.Request)
func MonthlyStatsIndex ¶
func MonthlyStatsIndex(w http.ResponseWriter, r *http.Request)
func NewAttendee ¶
func NewAttendee(att *Attendee)
func NewMonthlyStat ¶
func NewMonthlyStat(stat *Planning_Stat)
func NewPlanning ¶
func NewPlanning(pla *Planning)
func PlanningsCreate ¶
func PlanningsCreate(w http.ResponseWriter, r *http.Request)
func PlanningsDelete ¶
func PlanningsDelete(w http.ResponseWriter, r *http.Request)
func PlanningsIndex ¶
func PlanningsIndex(w http.ResponseWriter, r *http.Request)
func PlanningsShow ¶
func PlanningsShow(w http.ResponseWriter, r *http.Request)
func PlanningsUpdate ¶
func PlanningsUpdate(w http.ResponseWriter, r *http.Request)
func TheSecureRouter ¶
func UpdateAttendee ¶
func UpdateAttendee(att *Attendee)
func UpdateMonthlyStat ¶
func UpdateMonthlyStat(stat *Planning_Stat)
func UpdatePlanning ¶
func UpdatePlanning(pla *Planning)
Types ¶
type Attendee ¶
type Attendee struct { // Id of the attendee // in: int64 // read only: true Id int `json:"id"` // Id of the planning // in: int // example: 2 // required: true Id_planning int `json:"id_planning"` // Id of the volunteer // in: int // example: 1 // required: true Id_volunteer int `json:"id_volunteer"` // Job of the shift // in: string // example: staff // required: true Job string `json:"job"` // Date of the shift // in: string // example: 2023-05-23 // required: true Date string `json:"date"` // Hour_begins of the shift // in: string // example: 10:00:00 // required: true Hour_begins string `json:"hour_begins"` // Hour_end of the shift // in: string // example: 12:00:00 // required: true Hour_end string `json:"hour_end"` }
swagger:model Planning_Attendee
func FindAttendeeById ¶
type Attendees ¶
type Attendees []Attendee
func AllAttendees ¶
func AllAttendees() *Attendees
type Planning ¶
type Planning struct { // Id of the planning // in: int64 // read only: true Id int `json:"id"` // Name of the planning // in: string // example: Permanence Name string `json:"name"` // Type of the planning // in: string // example: permanence Type string `json:"type"` // Location of the planning // in: string // example: Labo Prof Chen Location string `json:"location"` // Date_begins of the planning // in: string // example: 2023-05-23 Date_begins string `json:"date_begins"` // Date_end of the planning // in: string // example: 2023-05-23 Date_end string `json:"date_end"` // Hour_begins of the planning // in: string // example: 9:00:00 Hour_begins string `json:"hour_begins"` // Hour_end of the planning // in: string // example: 18:00:00 Hour_end string `json:"hour_end"` }
swagger:model Planning
func FindPlanningById ¶
type Planning_Stat ¶
type Planning_Stat struct { // Id of the entry // in: int // read only: true Id int `json:"id"` // Archive date of the stat // in: string // example: 2023-01 // required: true ArchiveDate string `json:"archive_date"` // Number of planning by location // in: json // example: {"MDE": 12, "MDEL": 4} // read only: true NbPerLocation json.RawMessage `json:"nb_per_location"` // Number of planning by type // in: json // example: {"permanence": 12, "event": 4} // read only: true NbPerType json.RawMessage `json:"nb_per_type"` // Number of planning total // in: int // example: 12 // read only: true NbTotal int `json:"nb_total"` // Average attendee per type of planning // in: json // example: {"event": 12.5, "permanence": 5} // read only: true AvgAttPerType json.RawMessage `json:"nb_avg_att_per_type"` // Number of planning attendees total // in: int // example: 12 // read only: true NbAttTotal int `json:"nb_att_total"` // CreatedAt date of the stat // in: time.Time // read only: true CreatedAt time.Time `json:"created_at"` // UpdatedAt date of the stat // in: time.Time // read only: true UpdatedAt time.Time `json:"updated_at"` }
swagger:model Planning_Stat
func FindMonthlyStatByDate ¶
func FindMonthlyStatByDate(archive_date string) *Planning_Stat
type Planning_Stats ¶
type Planning_Stats []Planning_Stat
func AllMonthlyStats ¶
func AllMonthlyStats() *Planning_Stats
type Plannings ¶
type Plannings []Planning
func AllPlannings ¶
func AllPlannings() *Plannings
func FindPlanningsByDate ¶
Click to show internal directories.
Click to hide internal directories.