controllers

package
v0.0.0-...-6d8a328 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2022 License: AGPL-3.0 Imports: 28 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

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