handlers

package
v0.0.0-...-440c973 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package handlers contains the http handlers which receive requests to be processed by the API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleAppointPractitioner

func HandleAppointPractitioner(svc dao.Service, helperService utils.HelperService) http.Handler

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

func HandleCreateProgressReport(svc dao.Service, helperService utils.HelperService) http.Handler

HandleCreateProgressReport receives a progress report to be stored against the Insolvency case

func HandleCreateResolution

func HandleCreateResolution(svc dao.Service, helperService utils.HelperService) http.Handler

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

func HandleDeleteAttachment(svc dao.Service) http.Handler

HandleDeleteAttachment deletes an attachment resource from the DB and deletes the stored file

func HandleDeletePractitioner

func HandleDeletePractitioner(svc dao.Service) http.Handler

HandleDeletePractitioner deletes a practitioner from the insolvency case with the specified transactionID and IPCode

func HandleDeletePractitionerAppointment

func HandleDeletePractitionerAppointment(svc dao.Service) http.Handler

HandleDeletePractitionerAppointment deletes an appointment for the specified transactionID and practitionerID

func HandleDeleteProgressReport

func HandleDeleteProgressReport(svc dao.Service, helperService utils.HelperService) http.Handler

HandleDeleteProgressReport deletes a progress report resource from an insolvency case

func HandleDeleteResolution

func HandleDeleteResolution(svc dao.Service) http.Handler

HandleDeleteResolution deletes a resolution stored against the Insolvency Case

func HandleDeleteStatementOfAffairs

func HandleDeleteStatementOfAffairs(svc dao.Service) http.Handler

HandleDeleteStatementOfAffairs deletes a statement of affairs resource from an insolvency case

func HandleDownloadAttachment

func HandleDownloadAttachment(svc dao.Service) http.Handler

HandleDownloadAttachment download an attachment which is stored against an Insolvency case

func HandleGetAttachmentDetails

func HandleGetAttachmentDetails(svc dao.Service, helperService utils.HelperService) http.Handler

HandleGetAttachmentDetails receives an attachment to be stored against the Insolvency case

func HandleGetFilings

func HandleGetFilings(svc dao.Service) http.Handler

HandleGetFilings returns the resource in filings format for the filing-resource-handler to send to CHIPS

func HandleGetPractitionerAppointment

func HandleGetPractitionerAppointment(svc dao.Service) http.Handler

HandleGetPractitionerAppointment retrieves appointment details for the specified transactionID and practitionerID

func HandleGetPractitionerResource

func HandleGetPractitionerResource(svc dao.Service) http.Handler

HandleGetPractitionerResource retrieves a practitioner with the specified practitionerID on the insolvency case with the specified transactionID

func HandleGetPractitionerResources

func HandleGetPractitionerResources(svc dao.Service) http.Handler

HandleGetPractitionerResources retrieves a list of practitioners for the insolvency case with the specified transactionID

func HandleGetProgressReport

func HandleGetProgressReport(svc dao.Service) http.Handler

HandleGetProgressReport retrieves a progress report stored against the Insolvency Case

func HandleGetResolution

func HandleGetResolution(svc dao.Service) http.Handler

HandleGetResolution retrieves a resolution stored against the Insolvency Case

func HandleGetStatementOfAffairs

func HandleGetStatementOfAffairs(svc dao.Service) http.Handler

HandleGetStatementOfAffairs retrieves a statement of affairs stored against the Insolvency Case

func HandleGetValidationStatus

func HandleGetValidationStatus(svc dao.Service) http.Handler

HandleGetValidationStatus returns whether a created insolvency case is acceptable to be closed by the transaction API

func HandleSubmitAttachment

func HandleSubmitAttachment(svc dao.Service, helperService utils.HelperService) http.Handler

HandleSubmitAttachment receives an attachment to be stored against the Insolvency case

func RecoveryHandler

func RecoveryHandler(h http.Handler) http.Handler

RecoveryHandler is a handler wrapper that catches runtime panics and returns a 500 Internal Server Error

func Register

func Register(mainRouter *mux.Router, svc dao.Service, helperService utils.HelperService)

Register defines the endpoints for the API

Types

This section is empty.

Jump to

Keyboard shortcuts

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