Documentation ¶
Index ¶
- func MethodNotAllowed() http.HandlerFunc
- func NewAccountController(app application.Application) application.Controller
- func NewEmployeeController(app application.Application) application.Controller
- func NewGraphQLController(app application.Application) application.Controller
- func NewLoginController(app application.Application) application.Controller
- func NewLogoutController(app application.Application) application.Controller
- func NewStaticFilesController(fsInstances []*hashfs.FS) application.Controller
- func NewUploadController(app application.Application) application.Controller
- func NotFound() http.HandlerFunc
- type AccountController
- type EmployeeController
- func (c *EmployeeController) Create(w http.ResponseWriter, r *http.Request)
- func (c *EmployeeController) Delete(w http.ResponseWriter, r *http.Request)
- func (c *EmployeeController) GetEdit(w http.ResponseWriter, r *http.Request)
- func (c *EmployeeController) GetNew(w http.ResponseWriter, r *http.Request)
- func (c *EmployeeController) List(w http.ResponseWriter, r *http.Request)
- func (c *EmployeeController) PostEdit(w http.ResponseWriter, r *http.Request)
- func (c *EmployeeController) Register(r *mux.Router)
- type GraphQLController
- type LoginController
- type LogoutController
- type SaveAccountDTO
- type StaticFilesController
- type UploadController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MethodNotAllowed ¶
func MethodNotAllowed() http.HandlerFunc
func NewAccountController ¶
func NewAccountController(app application.Application) application.Controller
func NewEmployeeController ¶
func NewEmployeeController(app application.Application) application.Controller
func NewGraphQLController ¶
func NewGraphQLController(app application.Application) application.Controller
func NewLoginController ¶
func NewLoginController(app application.Application) application.Controller
func NewLogoutController ¶
func NewLogoutController(app application.Application) application.Controller
func NewStaticFilesController ¶
func NewStaticFilesController(fsInstances []*hashfs.FS) application.Controller
func NewUploadController ¶
func NewUploadController(app application.Application) application.Controller
func NotFound ¶
func NotFound() http.HandlerFunc
Types ¶
type AccountController ¶
type AccountController struct {
// contains filtered or unexported fields
}
func (*AccountController) Get ¶
func (c *AccountController) Get(w http.ResponseWriter, r *http.Request)
func (*AccountController) Post ¶
func (c *AccountController) Post(w http.ResponseWriter, r *http.Request)
func (*AccountController) Register ¶
func (c *AccountController) Register(r *mux.Router)
type EmployeeController ¶
type EmployeeController struct {
// contains filtered or unexported fields
}
func (*EmployeeController) Create ¶
func (c *EmployeeController) Create(w http.ResponseWriter, r *http.Request)
func (*EmployeeController) Delete ¶
func (c *EmployeeController) Delete(w http.ResponseWriter, r *http.Request)
func (*EmployeeController) GetEdit ¶
func (c *EmployeeController) GetEdit(w http.ResponseWriter, r *http.Request)
func (*EmployeeController) GetNew ¶
func (c *EmployeeController) GetNew(w http.ResponseWriter, r *http.Request)
func (*EmployeeController) List ¶
func (c *EmployeeController) List(w http.ResponseWriter, r *http.Request)
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 (c *LoginController) Get(w http.ResponseWriter, r *http.Request)
func (*LoginController) Post ¶
func (c *LoginController) Post(w http.ResponseWriter, r *http.Request)
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)
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)
Click to show internal directories.
Click to hide internal directories.