Documentation ¶
Index ¶
- func AutoMonthlyStatCreate(w http.ResponseWriter, r *http.Request)
- func AutoNewMonthlyStat()
- func CreateVolunteersTable()
- func DeleteVolunteerById(id int) error
- func InitRoutes()
- func Launcher()
- func MonthlyStatShowByDate(w http.ResponseWriter, r *http.Request)
- func MonthlyStatsIndex(w http.ResponseWriter, r *http.Request)
- func NewMonthlyStat(stat *Volunteer_Stat)
- func NewVolunteer(vlt *Volunteer)
- func Specimen()
- func TheDb() *sql.DB
- func TheLogger() *logger.Logger
- func TheRouter() *mux.Router
- func TheSecureRouter() *mux.Router
- func UpdateMonthlyStat(stat *Volunteer_Stat)
- func UpdateVolunteer(vlt *Volunteer)
- func VolunteersCreate(w http.ResponseWriter, r *http.Request)
- func VolunteersDelete(w http.ResponseWriter, r *http.Request)
- func VolunteersIndex(w http.ResponseWriter, r *http.Request)
- func VolunteersShowById(w http.ResponseWriter, r *http.Request)
- func VolunteersUpdate(w http.ResponseWriter, r *http.Request)
- type Volunteer
- type Volunteer_Stat
- type Volunteer_Stats
- type Volunteers
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoMonthlyStatCreate ¶
func AutoMonthlyStatCreate(w http.ResponseWriter, r *http.Request)
func AutoNewMonthlyStat ¶
func AutoNewMonthlyStat()
func CreateVolunteersTable ¶
func CreateVolunteersTable()
func DeleteVolunteerById ¶
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 NewMonthlyStat ¶
func NewMonthlyStat(stat *Volunteer_Stat)
func NewVolunteer ¶
func NewVolunteer(vlt *Volunteer)
func TheSecureRouter ¶
func UpdateMonthlyStat ¶
func UpdateMonthlyStat(stat *Volunteer_Stat)
func UpdateVolunteer ¶
func UpdateVolunteer(vlt *Volunteer)
func VolunteersCreate ¶
func VolunteersCreate(w http.ResponseWriter, r *http.Request)
func VolunteersDelete ¶
func VolunteersDelete(w http.ResponseWriter, r *http.Request)
func VolunteersIndex ¶
func VolunteersIndex(w http.ResponseWriter, r *http.Request)
func VolunteersShowById ¶
func VolunteersShowById(w http.ResponseWriter, r *http.Request)
func VolunteersUpdate ¶
func VolunteersUpdate(w http.ResponseWriter, r *http.Request)
Types ¶
type Volunteer ¶
type Volunteer struct { // Id of the volunteer // in: int64 // read only: true Id int `json:"id"` // Firstname of the volunteer // in: string // required: true // example: Ash Firstname string `json:"firstname"` // Lastname of the volunteer // in: string // required: true // example: Ketchum Lastname string `json:"lastname"` // Email of the volunteer // in: string // required: true // example: ash.ketchum@indigo.kt Email string `json:"email"` // Discord pseudo // in: string // required: true // example: TheVeryBest Discord string `json:"discord"` // Phone number // in: string // required: true // example: 0123456789 Phone string `json:"phone"` // University name // in: string // required: true // example: Indigo University string `json:"university"` // Postal address // in: string // required: true // example: 01 bis house, 00001 Pallet Town, Kanto PostalAddress string `json:"postal_address"` // Status of the volunteer // in: bool // required: true Actif bool `json:"actif"` // Does the volunteer has a bureau role // in: bool // required: true // example: false Bureau bool `json:"bureau"` // Status of the volunteer // in: string // required: true // example: volunteer HrStatus string `json:"hr_status"` // Started of date of volunteering // in: string // required: true // example: 1997-04-01 StartedDate string `json:"started_date"` }
swagger:model Volunteer
func FindVolunteerById ¶
type Volunteer_Stat ¶
type Volunteer_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 active volunteer by university // in: json // example: {"Lumiere": 1, "SciencePo": 4} // read only: true NbActivePerUniversity json.RawMessage `json:"nb_active_per_university"` // Number of active volunteer by hr status // in: json // example: {"volunteer": 1, "employee": 4} // read only: true NbActivePerHrstatus json.RawMessage `json:"nb_active_per_hrstatus"` // Number of new volunteer this month // in: int // example: 12 // read only: true NbNewVlt int `json:"nb_new_vlt_this_month"` // Number of alumnus // in: int // example: 12 // read only: true NbAlumnus int `json:"nb_alumnus"` // Number of volunteer in the bureau // in: int // example: 12 // read only: true NbBureau int `json:"nb_bureau"` // 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 Volunteer_Stat
func FindMonthlyStatByDate ¶
func FindMonthlyStatByDate(archive_date string) *Volunteer_Stat
type Volunteer_Stats ¶
type Volunteer_Stats []Volunteer_Stat
func AllMonthlyStats ¶
func AllMonthlyStats() *Volunteer_Stats
Click to show internal directories.
Click to hide internal directories.