Documentation ¶
Index ¶
- type AddEventRequest
- type AddSlotsToEventRequest
- type CreateUserRequest
- type EventsController
- type ForgotPasswordRequest
- type LoginRequest
- type RecoverPasswordRequest
- type RemoveEventRequest
- type RemoveSlotFromEventRequest
- type SlotsController
- type SlotsRequest
- type UserController
- func (uc UserController) CheckSession(writer http.ResponseWriter, req *http.Request)
- func (uc UserController) ConfirmUser(writer http.ResponseWriter, req *http.Request)
- func (uc UserController) CreateUser(writer http.ResponseWriter, req *http.Request)
- func (uc UserController) ForgotPassword(writer http.ResponseWriter, req *http.Request)
- func (uc UserController) Login(writer http.ResponseWriter, req *http.Request)
- func (uc UserController) Logout(writer http.ResponseWriter, req *http.Request)
- func (uc UserController) RecoverUser(writer http.ResponseWriter, req *http.Request)
- func (uc UserController) ValidateRecoverLink(writer http.ResponseWriter, req *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddEventRequest ¶
type AddEventRequest struct {
Name string `json:"name"`
}
type AddSlotsToEventRequest ¶
type AddSlotsToEventRequest struct { DisplayId string `json:"display_id"` Slots []SlotsRequest `json:"slots"` }
type CreateUserRequest ¶
type EventsController ¶
type EventsController struct {
// contains filtered or unexported fields
}
func NewEventsController ¶
func NewEventsController(dal *db.DAL) *EventsController
func (EventsController) AddEventForUser ¶
func (ec EventsController) AddEventForUser(writer http.ResponseWriter, req *http.Request)
func (EventsController) GetEventsForUser ¶
func (ec EventsController) GetEventsForUser(writer http.ResponseWriter, req *http.Request)
func (EventsController) RemoveEvent ¶
func (ec EventsController) RemoveEvent(writer http.ResponseWriter, req *http.Request)
type ForgotPasswordRequest ¶
type ForgotPasswordRequest struct {
Email string `json:"email"`
}
type LoginRequest ¶
type RecoverPasswordRequest ¶
type RemoveEventRequest ¶
type RemoveEventRequest struct {
DisplayId string `json:"display_id"`
}
type SlotsController ¶
type SlotsController struct {
// contains filtered or unexported fields
}
func NewSlotsController ¶
func NewSlotsController(dal *db.DAL) *SlotsController
func (SlotsController) AddSlotsToEvent ¶
func (sc SlotsController) AddSlotsToEvent(writer http.ResponseWriter, req *http.Request)
func (SlotsController) RemoveSlotFromEvent ¶
func (sc SlotsController) RemoveSlotFromEvent(writer http.ResponseWriter, req *http.Request)
type SlotsRequest ¶
type UserController ¶
type UserController struct {
// contains filtered or unexported fields
}
func NewUserController ¶
func NewUserController(dal *db.DAL, auth *auth.Authenticator) *UserController
func (UserController) CheckSession ¶
func (uc UserController) CheckSession(writer http.ResponseWriter, req *http.Request)
* If we got here after the auth middleware then we are authenticated...
func (UserController) ConfirmUser ¶
func (uc UserController) ConfirmUser(writer http.ResponseWriter, req *http.Request)
* Validate confirmation token and redirect to login page
func (UserController) CreateUser ¶
func (uc UserController) CreateUser(writer http.ResponseWriter, req *http.Request)
func (UserController) ForgotPassword ¶
func (uc UserController) ForgotPassword(writer http.ResponseWriter, req *http.Request)
* Validate confirmation token and redirect to login page
func (UserController) Login ¶
func (uc UserController) Login(writer http.ResponseWriter, req *http.Request)
func (UserController) Logout ¶
func (uc UserController) Logout(writer http.ResponseWriter, req *http.Request)
func (UserController) RecoverUser ¶
func (uc UserController) RecoverUser(writer http.ResponseWriter, req *http.Request)
* validates the recover password token, saves the new password and redirects to login page
func (UserController) ValidateRecoverLink ¶
func (uc UserController) ValidateRecoverLink(writer http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.