front

package
v0.0.0-...-c7bd0a4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 4, 2022 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartFront

func StartFront(orm *db.DbOrm)

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

type Front struct {
	Service *service.Service
	Session *session.Store
}

func NewFront

func NewFront(service *service.Service, session *session.Store) *Front

func (*Front) GetProfileEdit

func (a *Front) GetProfileEdit(c *fiber.Ctx) error

func (*Front) GetRegister

func (a *Front) GetRegister(c *fiber.Ctx) error

func (*Front) Index

func (a *Front) Index(c *fiber.Ctx) error

func (*Front) PostProfileEdit

func (a *Front) PostProfileEdit(c *fiber.Ctx) error

func (*Front) PostRegister

func (a *Front) PostRegister(c *fiber.Ctx) error

func (*Front) Profile

func (a *Front) Profile(c *fiber.Ctx) error

func (*Front) ProfileActivate

func (a *Front) ProfileActivate(c *fiber.Ctx) error

func (*Front) ProfileDeactivate

func (a *Front) ProfileDeactivate(c *fiber.Ctx) error

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"`
}

type Session

type Session struct {
}

type Skill

type Skill struct {
	Name string `json:"name" xml:"name" form:"name"`
	XP   int    `json:"xp" xml:"xp" form:"xp"`
	Note string `json:"note" xml:"note" form:"note"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL