app

package
v0.0.0-...-b6bebaf Latest Latest
Warning

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

Go to latest
Published: May 8, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartApp

func StartApp(conf *config.Config)

Types

type CreateEmployeeSchema

type CreateEmployeeSchema struct {
	Name *string `json:"name" xml:"name" form:"name"`
}

type CreateGuestSchema

type CreateGuestSchema struct {
	Name *string `json:"name" xml:"name" form:"name"`
	Doc  *string `json:"doc" xml:"doc" form:"doc"`
}

type CreateMenuSchema

type CreateMenuSchema struct {
	Name *string `json:"name" xml:"name" form:"name"`
}

type CreatePlaceSchema

type CreatePlaceSchema struct {
	Name *string `json:"name" xml:"name" form:"name"`
}

type Front

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

func NewFront

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

func (*Front) GetCreateEmployee

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

func (*Front) GetCreateGuest

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

func (*Front) GetCreateMenu

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

func (*Front) GetCreatePlace

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

func (*Front) GetEmployee

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

func (*Front) GetGuest

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

func (*Front) GetMenu

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

func (*Front) GetPlace

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

func (*Front) Index

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

func (*Front) PostCreateEmployee

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

func (*Front) PostCreateGuest

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

func (*Front) PostCreateMenu

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

func (*Front) PostCreatePlace

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

func (*Front) SearchEmployees

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

func (*Front) SearchGuests

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

func (*Front) SearchMenus

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

func (*Front) SearchPlaces

func (a *Front) SearchPlaces(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

type SearchEmployeesSchema

type SearchEmployeesSchema struct {
	PageToken *string `query:"page_token"`
	PageSize  *int    `query:"page_size"`
}

type SearchGuestsSchema

type SearchGuestsSchema struct {
	PageToken *string `query:"page_token"`
	PageSize  *int    `query:"page_size"`
}

type SearchMenusSchema

type SearchMenusSchema struct {
	PageToken *string `query:"page_token"`
	PageSize  *int    `query:"page_size"`
}

type SearchPlacesSchema

type SearchPlacesSchema struct {
	PageToken *string `query:"page_token"`
	PageSize  *int    `query:"page_size"`
}

type Session

type Session struct {
}

Jump to

Keyboard shortcuts

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