Documentation ¶
Overview ¶
Package handlers contains the http handlers which receive requests to be processed by the API.
Index ¶
- func HandleAppointPractitioner(svc dao.Service, helperService utils.HelperService) http.Handler
- func HandleCreateInsolvencyResource(svc dao.Service, helperService utils.HelperService) http.Handler
- func HandleCreatePractitionersResource(svc dao.Service, helperService utils.HelperService) http.Handler
- func HandleCreateProgressReport(svc dao.Service, helperService utils.HelperService) http.Handler
- func HandleCreateResolution(svc dao.Service, helperService utils.HelperService) http.Handler
- func HandleCreateStatementOfAffairs(svc dao.Service, helperService utils.HelperService) http.Handler
- func HandleDeleteAttachment(svc dao.Service) http.Handler
- func HandleDeletePractitioner(svc dao.Service) http.Handler
- func HandleDeletePractitionerAppointment(svc dao.Service) http.Handler
- func HandleDeleteProgressReport(svc dao.Service, helperService utils.HelperService) http.Handler
- func HandleDeleteResolution(svc dao.Service) http.Handler
- func HandleDeleteStatementOfAffairs(svc dao.Service) http.Handler
- func HandleDownloadAttachment(svc dao.Service) http.Handler
- func HandleGetAttachmentDetails(svc dao.Service, helperService utils.HelperService) http.Handler
- func HandleGetFilings(svc dao.Service) http.Handler
- func HandleGetPractitionerAppointment(svc dao.Service) http.Handler
- func HandleGetPractitionerResource(svc dao.Service) http.Handler
- func HandleGetPractitionerResources(svc dao.Service) http.Handler
- func HandleGetProgressReport(svc dao.Service) http.Handler
- func HandleGetResolution(svc dao.Service) http.Handler
- func HandleGetStatementOfAffairs(svc dao.Service) http.Handler
- func HandleGetValidationStatus(svc dao.Service) http.Handler
- func HandleSubmitAttachment(svc dao.Service, helperService utils.HelperService) http.Handler
- func RecoveryHandler(h http.Handler) http.Handler
- func Register(mainRouter *mux.Router, svc dao.Service, helperService utils.HelperService)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleAppointPractitioner ¶
HandleAppointPractitioner adds appointment details to a practitioner resource on a transaction
func HandleCreateInsolvencyResource ¶
func HandleCreateInsolvencyResource(svc dao.Service, helperService utils.HelperService) http.Handler
HandleCreateInsolvencyResource creates an insolvency resource
func HandleCreatePractitionersResource ¶
func HandleCreatePractitionersResource(svc dao.Service, helperService utils.HelperService) http.Handler
HandleCreatePractitionersResource updates the insolvency resource with the incoming list of practitioners
func HandleCreateProgressReport ¶
HandleCreateProgressReport receives a progress report to be stored against the Insolvency case
func HandleCreateResolution ¶
HandleCreateResolution receives a resolution to be stored against the Insolvency case
func HandleCreateStatementOfAffairs ¶
func HandleCreateStatementOfAffairs(svc dao.Service, helperService utils.HelperService) http.Handler
HandleCreateStatementOfAffairs receives a statement of affairs to be stored against the Insolvency case
func HandleDeleteAttachment ¶
HandleDeleteAttachment deletes an attachment resource from the DB and deletes the stored file
func HandleDeletePractitioner ¶
HandleDeletePractitioner deletes a practitioner from the insolvency case with the specified transactionID and IPCode
func HandleDeletePractitionerAppointment ¶
HandleDeletePractitionerAppointment deletes an appointment for the specified transactionID and practitionerID
func HandleDeleteProgressReport ¶
HandleDeleteProgressReport deletes a progress report resource from an insolvency case
func HandleDeleteResolution ¶
HandleDeleteResolution deletes a resolution stored against the Insolvency Case
func HandleDeleteStatementOfAffairs ¶
HandleDeleteStatementOfAffairs deletes a statement of affairs resource from an insolvency case
func HandleDownloadAttachment ¶
HandleDownloadAttachment download an attachment which is stored against an Insolvency case
func HandleGetAttachmentDetails ¶
HandleGetAttachmentDetails receives an attachment to be stored against the Insolvency case
func HandleGetFilings ¶
HandleGetFilings returns the resource in filings format for the filing-resource-handler to send to CHIPS
func HandleGetPractitionerAppointment ¶
HandleGetPractitionerAppointment retrieves appointment details for the specified transactionID and practitionerID
func HandleGetPractitionerResource ¶
HandleGetPractitionerResource retrieves a practitioner with the specified practitionerID on the insolvency case with the specified transactionID
func HandleGetPractitionerResources ¶
HandleGetPractitionerResources retrieves a list of practitioners for the insolvency case with the specified transactionID
func HandleGetProgressReport ¶
HandleGetProgressReport retrieves a progress report stored against the Insolvency Case
func HandleGetResolution ¶
HandleGetResolution retrieves a resolution stored against the Insolvency Case
func HandleGetStatementOfAffairs ¶
HandleGetStatementOfAffairs retrieves a statement of affairs stored against the Insolvency Case
func HandleGetValidationStatus ¶
HandleGetValidationStatus returns whether a created insolvency case is acceptable to be closed by the transaction API
func HandleSubmitAttachment ¶
HandleSubmitAttachment receives an attachment to be stored against the Insolvency case
func RecoveryHandler ¶
RecoveryHandler is a handler wrapper that catches runtime panics and returns a 500 Internal Server Error
Types ¶
This section is empty.