Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionHandler ¶
type ActionHandler struct { HandlerBase CreateAction createAction }
ActionHandler is the handler for CRUD operations on a system intake action
func NewActionHandler ¶
func NewActionHandler( base HandlerBase, create createAction, ) ActionHandler
NewActionHandler is a constructor for ActionHandler
func (ActionHandler) Handle ¶
func (h ActionHandler) Handle() http.HandlerFunc
Handle handles a request for the system intake action
type BackfillHandler ¶
type BackfillHandler struct { HandlerBase Saver saver }
BackfillHandler quick & dirty
func NewBackfillHandler ¶
func NewBackfillHandler(base HandlerBase, s saver) BackfillHandler
NewBackfillHandler is quick & dirty
func (BackfillHandler) Handle ¶
func (h BackfillHandler) Handle() http.HandlerFunc
Handle handles a web request and returns a list of systems
type BusinessCaseHandler ¶
type BusinessCaseHandler struct { HandlerBase FetchBusinessCaseByID fetchBusinessCaseByID CreateBusinessCase createBusinessCase UpdateBusinessCase updateBusinessCase }
BusinessCaseHandler is the handler for CRUD operations on business case
func NewBusinessCaseHandler ¶
func NewBusinessCaseHandler( base HandlerBase, fetch fetchBusinessCaseByID, create createBusinessCase, update updateBusinessCase, ) BusinessCaseHandler
NewBusinessCaseHandler is a constructor for BusinessCaseHandler
func (BusinessCaseHandler) Handle ¶
func (h BusinessCaseHandler) Handle() http.HandlerFunc
Handle handles a request for the business case form
type CatchAllHandler ¶
type CatchAllHandler struct {
HandlerBase
}
CatchAllHandler returns 404
func NewCatchAllHandler ¶
func NewCatchAllHandler(base HandlerBase) CatchAllHandler
NewCatchAllHandler is a constructor for CatchAllHanlder
func (CatchAllHandler) Handle ¶
func (h CatchAllHandler) Handle() http.HandlerFunc
Handle returns 404 on unexpected routes
type HandlerBase ¶
type HandlerBase struct {
// contains filtered or unexported fields
}
HandlerBase is for shared handler utilities
func NewHandlerBase ¶
func NewHandlerBase() HandlerBase
NewHandlerBase is a constructor for HandlerBase
func (HandlerBase) WriteErrorResponse ¶
func (b HandlerBase) WriteErrorResponse(ctx context.Context, w http.ResponseWriter, appErr error)
WriteErrorResponse writes a response for a given application error
type HealthCheckHandler ¶
type HealthCheckHandler struct { HandlerBase Config *viper.Viper }
HealthCheckHandler returns the API status
func NewHealthCheckHandler ¶
func NewHealthCheckHandler(base HandlerBase, config *viper.Viper) HealthCheckHandler
NewHealthCheckHandler is a constructor for HealthCheckHandler
func (HealthCheckHandler) Handle ¶
func (h HealthCheckHandler) Handle() http.HandlerFunc
Handle handles a web request and returns a healthcheck JSON payload
type SystemIntakeHandler ¶
type SystemIntakeHandler struct { HandlerBase ArchiveSystemIntake archiveSystemIntake RemoveSystemIntake archiveSystemIntake }
SystemIntakeHandler is the handler for CRUD operations on system intake
func NewSystemIntakeHandler ¶
func NewSystemIntakeHandler( base HandlerBase, delete archiveSystemIntake, ) SystemIntakeHandler
NewSystemIntakeHandler is a constructor for SystemIntakeHandler
func (SystemIntakeHandler) Handle ¶
func (h SystemIntakeHandler) Handle() http.HandlerFunc
Handle handles a request for the system intake form
type SystemIntakeMetricsHandler ¶
type SystemIntakeMetricsHandler struct { HandlerBase FetchMetrics fetchMetrics }
SystemIntakeMetricsHandler is the handler for retrieving metrics
func NewSystemIntakeMetricsHandler ¶
func NewSystemIntakeMetricsHandler(base HandlerBase, fetch fetchMetrics) SystemIntakeMetricsHandler
NewSystemIntakeMetricsHandler is a constructor for SystemIntakeMetricsHandler
func (SystemIntakeMetricsHandler) Handle ¶
func (h SystemIntakeMetricsHandler) Handle() http.HandlerFunc
Handle handles a web request and returns a metrics digest