Documentation ¶
Index ¶
- func StartFront(orm *db.DbOrm)
- type ActivateRequest
- type DeactivateRequest
- type Front
- func (a *Front) GetProfileEdit(c *fiber.Ctx) error
- func (a *Front) GetRegister(c *fiber.Ctx) error
- func (a *Front) Index(c *fiber.Ctx) error
- func (a *Front) PostProfileEdit(c *fiber.Ctx) error
- func (a *Front) PostRegister(c *fiber.Ctx) error
- func (a *Front) Profile(c *fiber.Ctx) error
- func (a *Front) ProfileActivate(c *fiber.Ctx) error
- func (a *Front) ProfileDeactivate(c *fiber.Ctx) error
- type Middleware
- type PasswordBody
- type RegisterRequest
- type SearchRequest
- type Session
- type Skill
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartFront ¶
Types ¶
type ActivateRequest ¶
type ActivateRequest struct {
HireDate string `json:"hire_date" xml:"hire_date" form:"hire_date"`
}
type DeactivateRequest ¶
type DeactivateRequest struct {
TaminationDate string `json:"termination_date" xml:"termination_date" form:"termination_date"`
}
type Front ¶
func (*Front) GetProfileEdit ¶
func (*Front) GetRegister ¶
func (*Front) PostProfileEdit ¶
func (*Front) PostRegister ¶
func (*Front) ProfileActivate ¶
func (*Front) ProfileDeactivate ¶
type Middleware ¶
type Middleware struct { Session *session.Store Service *service.Service CsrfProtection func(*fiber.Ctx) error }
func NewMiddleware ¶
func NewMiddleware(session *session.Store, service *service.Service) *Middleware
func (*Middleware) RequirePassword ¶
func (m *Middleware) RequirePassword(c *fiber.Ctx) error
type PasswordBody ¶
type PasswordBody struct {
Password string `json:"password" xml:"password" form:"password"`
}
type RegisterRequest ¶
type RegisterRequest struct { Name string `json:"name" xml:"name" form:"name"` Email string `json:"email" xml:"email" form:"email"` Position string `json:"position" xml:"position" form:"position"` Presentation string `json:"presentation" xml:"presentation" form:"presentation"` HireDate string `json:"hire_date" xml:"hire_date" form:"hire_date"` Password string `json:"password" xml:"password" form:"password"` Skills []Skill `json:"skills" xml:"skills" form:"skills"` }
type SearchRequest ¶
type SearchRequest struct {
Q string `query:"q"`
}
Click to show internal directories.
Click to hide internal directories.