Documentation ¶
Index ¶
- type Controller
- func (h *Controller) AttachMiddleware(fn http.HandlerFunc) http.HandlerFunc
- func (h *Controller) AuthorizationMiddleware(fn http.HandlerFunc) http.HandlerFunc
- func (h *Controller) HandleRequests(w http.ResponseWriter, r *http.Request)
- func (h *Controller) IPAddressMiddleware(fn http.HandlerFunc) http.HandlerFunc
- func (h *Controller) JWTProcessorMiddleware(fn http.HandlerFunc) http.HandlerFunc
- func (h *Controller) PaginationMiddleware(fn http.HandlerFunc) http.HandlerFunc
- func (h *Controller) ProtectedURLsMiddleware(fn http.HandlerFunc) http.HandlerFunc
- func (h *Controller) RateLimitMiddleware(fn http.HandlerFunc) http.HandlerFunc
- func (h *Controller) URLProcessorMiddleware(fn http.HandlerFunc) http.HandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct { Config map[string]string SecretSigningKeyBin []byte Logger *zerolog.Logger BackgroundManager *background.BackgroundManager SessionProvider session.Provider S3Util *utils.S3Util BleveService *bleve.BleveService InvoiceBuilderService *invoicebuilder.InvoiceBuilderService SessionRepo models.SessionRepository ActivitySheetItemRepo models.ActivitySheetItemRepository AssociateAwayLogRepo models.AssociateAwayLogRepository AssociateCommentRepo models.AssociateCommentRepository AssociateInsuranceRequirementRepo models.AssociateInsuranceRequirementRepository AssociateSkillSetRepo models.AssociateSkillSetRepository AssociateTagRepo models.AssociateTagRepository AssociateVehicleTypeRepo models.AssociateVehicleTypeRepository AssociateRepo models.AssociateRepository BulletinBoardItemRepo models.BulletinBoardItemRepository CommentRepo models.CommentRepository CustomerCommentRepo models.CustomerCommentRepository CustomerTagRepo models.CustomerTagRepository CustomerRepo models.CustomerRepository HowHearAboutUsItemRepo models.HowHearAboutUsItemRepository InsuranceRequirementRepo models.InsuranceRequirementRepository LiteActivitySheetItemRepo models.LiteActivitySheetItemRepository LiteAssociateAwayLogRepo models.LiteAssociateAwayLogRepository LiteAssociateRepo models.LiteAssociateRepository LiteBulletinBoardItemRepo models.LiteBulletinBoardItemRepository LiteCustomerRepo models.LiteCustomerRepository LitePrivateFileRepo models.LitePrivateFileRepository LiteDeactivatedCustomerRepo models.LiteDeactivatedCustomerRepository LiteFinancialRepo models.LiteFinancialRepository LiteHowHearAboutUsItemRepo models.LiteHowHearAboutUsItemRepository LiteInsuranceRequirementRepo models.LiteInsuranceRequirementRepository LitePartnerRepo models.LitePartnerRepository LiteSkillSetRepo models.LiteSkillSetRepository LiteStaffRepo models.LiteStaffRepository LiteTagRepo models.LiteTagRepository LiteTaskItemRepo models.LiteTaskItemRepository LiteTenantRepo models.LiteTenantRepository LiteVehicleTypeRepo models.LiteVehicleTypeRepository LiteWorkOrderRepo models.LiteWorkOrderRepository LiteWorkOrderServiceFeeRepo models.LiteWorkOrderServiceFeeRepository LiteOngoingWorkOrderRepo models.LiteOngoingWorkOrderRepository LiteWorkOrderDepositRepo models.LiteWorkOrderDepositRepository OngoingWorkOrderRepo models.OngoingWorkOrderRepository OngoingWorkOrderCommentRepo models.OngoingWorkOrderCommentRepository PartnerCommentRepo models.PartnerCommentRepository PartnerTagRepo models.PartnerTagRepository PartnerRepo models.PartnerRepository PrivateFileRepo models.PrivateFileRepository PublicImageUploadRepo models.PublicImageUploadRepository SkillSetInsuranceRequirementRepo models.SkillSetInsuranceRequirementRepository SkillSetRepo models.SkillSetRepository StaffCommentRepo models.StaffCommentRepository StaffTagRepo models.StaffTagRepository StaffRepo models.StaffRepository TagRepo models.TagRepository TaskItemRepo models.TaskItemRepository TenantRepo models.TenantRepository UserRepo models.UserRepository VehicleTypeRepo models.VehicleTypeRepository WorkOrderCommentRepo models.WorkOrderCommentRepository WorkOrderDepositRepo models.WorkOrderDepositRepository WorkOrderInvoiceRepo models.WorkOrderInvoiceRepository WorkOrderServiceFeeRepo models.WorkOrderServiceFeeRepository WorkOrderSkillSetRepo models.WorkOrderSkillSetRepository WorkOrderTagRepo models.WorkOrderTagRepository WorkOrderRepo models.WorkOrderRepository }
func (*Controller) AttachMiddleware ¶
func (h *Controller) AttachMiddleware(fn http.HandlerFunc) http.HandlerFunc
func (*Controller) AuthorizationMiddleware ¶
func (h *Controller) AuthorizationMiddleware(fn http.HandlerFunc) http.HandlerFunc
func (*Controller) HandleRequests ¶
func (h *Controller) HandleRequests(w http.ResponseWriter, r *http.Request)
func (*Controller) IPAddressMiddleware ¶
func (h *Controller) IPAddressMiddleware(fn http.HandlerFunc) http.HandlerFunc
func (*Controller) JWTProcessorMiddleware ¶
func (h *Controller) JWTProcessorMiddleware(fn http.HandlerFunc) http.HandlerFunc
func (*Controller) PaginationMiddleware ¶
func (h *Controller) PaginationMiddleware(fn http.HandlerFunc) http.HandlerFunc
func (*Controller) ProtectedURLsMiddleware ¶
func (h *Controller) ProtectedURLsMiddleware(fn http.HandlerFunc) http.HandlerFunc
The purpose of this middleware is to return a `401 unauthorized` error if the user is not authorized and visiting a protected URL.
func (*Controller) RateLimitMiddleware ¶
func (h *Controller) RateLimitMiddleware(fn http.HandlerFunc) http.HandlerFunc
func (*Controller) URLProcessorMiddleware ¶
func (h *Controller) URLProcessorMiddleware(fn http.HandlerFunc) http.HandlerFunc
Middleware will split the full URL path into slash-sperated parts and save to the context to flow downstream in the app for this particular request.
Source Files ¶
- activity_sheet_items.go
- associate_away_log.go
- associate_comment.go
- associate_operation.go
- associates.go
- bulletin_board_item.go
- controller.go
- customer_comment.go
- customer_operation.go
- customers.go
- dashboard.go
- deactivated_customers.go
- download_report.go
- download_report_1.go
- download_report_10.go
- download_report_11.go
- download_report_12.go
- download_report_13.go
- download_report_14.go
- download_report_15.go
- download_report_16.go
- download_report_17.go
- download_report_19.go
- download_report_2.go
- download_report_20.go
- download_report_21.go
- download_report_22.go
- download_report_3.go
- download_report_4.go
- download_report_5.go
- download_report_6.go
- download_report_7.go
- download_report_8.go
- download_report_9.go
- financials.go
- gateway.go
- how_hear_about_us_item.go
- insurance_requirement.go
- lite_tenant.go
- middlewares.go
- ongoing_work_order_comment.go
- ongoing_work_orders.go
- partner_comment.go
- partner_operation.go
- partners.go
- private_file.go
- skill_set.go
- staff.go
- staff_comment.go
- staff_operation.go
- tag.go
- task_item_operations.go
- task_item_operations_assign_associate.go
- task_item_operations_follow_up.go
- task_item_operations_follow_up_pending.go
- task_item_operations_order_completion.go
- task_item_operations_survey.go
- task_items.go
- tenant.go
- vehicle_type.go
- version.go
- word_order_comment.go
- work_order.go
- work_order_deposit.go
- work_order_invoice.go
- work_order_operation.go
- work_order_operations_invoice.go
- work_order_service_fee.go
Click to show internal directories.
Click to hide internal directories.