controllers

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: GPL-3.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MethodNotAllowed

func MethodNotAllowed() http.HandlerFunc

func NewEmployeeController

func NewEmployeeController(app application.Application) application.Controller

func NewStaticFilesController

func NewStaticFilesController(fsInstances []*hashfs.FS) application.Controller

func NotFound

func NotFound() http.HandlerFunc

Types

type AccountController

type AccountController struct {
	// contains filtered or unexported fields
}

func (*AccountController) Get

func (*AccountController) Post

func (*AccountController) Register

func (c *AccountController) Register(r *mux.Router)

type EmployeeController

type EmployeeController struct {
	// contains filtered or unexported fields
}

func (*EmployeeController) Create

func (*EmployeeController) Delete

func (*EmployeeController) GetEdit

func (*EmployeeController) GetNew

func (*EmployeeController) List

func (*EmployeeController) PostEdit

func (c *EmployeeController) PostEdit(w http.ResponseWriter, r *http.Request)

func (*EmployeeController) Register

func (c *EmployeeController) Register(r *mux.Router)

type GraphQLController

type GraphQLController struct {
	// contains filtered or unexported fields
}

func (*GraphQLController) Register

func (g *GraphQLController) Register(r *mux.Router)

type LoginController

type LoginController struct {
	// contains filtered or unexported fields
}

func (*LoginController) Get

func (*LoginController) Post

func (*LoginController) Register

func (c *LoginController) Register(r *mux.Router)

type LogoutController

type LogoutController struct {
	// contains filtered or unexported fields
}

func (*LogoutController) Logout

func (c *LogoutController) Logout(w http.ResponseWriter, r *http.Request)

func (*LogoutController) Register

func (c *LogoutController) Register(r *mux.Router)

type SaveAccountDTO

type SaveAccountDTO struct {
	FirstName  string `validate:"required"`
	LastName   string `validate:"required"`
	MiddleName string
	UILanguage string `validate:"required"`
	AvatarID   string
}

func (*SaveAccountDTO) Ok

func (u *SaveAccountDTO) Ok(l ut.Translator) (map[string]string, bool)

func (*SaveAccountDTO) ToEntity

func (u *SaveAccountDTO) ToEntity(id uint) (*user.User, error)

type StaticFilesController

type StaticFilesController struct {
	// contains filtered or unexported fields
}

func (*StaticFilesController) Register

func (s *StaticFilesController) Register(r *mux.Router)

type UploadController

type UploadController struct {
	// contains filtered or unexported fields
}

func (*UploadController) Create

func (c *UploadController) Create(w http.ResponseWriter, r *http.Request)

func (*UploadController) Register

func (c *UploadController) Register(r *mux.Router)

Jump to

Keyboard shortcuts

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