Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessibilityMetricsHandler ¶
type AccessibilityMetricsHandler struct { HandlerBase // contains filtered or unexported fields }
AccessibilityMetricsHandler is the handler for retrieving accessibility metrics
func NewAccessibilityMetricsHandler ¶
func NewAccessibilityMetricsHandler(fetchMetrics func() ([][]string, error), base HandlerBase) AccessibilityMetricsHandler
NewAccessibilityMetricsHandler is a constructor for AccessibilityMetricsHandler
func (AccessibilityMetricsHandler) Handle ¶
func (h AccessibilityMetricsHandler) Handle() http.HandlerFunc
Handle handles a web request and returns a metrics csv file
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 PDFHandler ¶
type PDFHandler struct { HandlerBase // contains filtered or unexported fields }
PDFHandler handles PDFs
func NewPDFHandler ¶
func NewPDFHandler(invoker invokeLambdaFunc) *PDFHandler
NewPDFHandler returns a new PDFHandler
func (PDFHandler) Handle ¶
func (h PDFHandler) Handle() http.HandlerFunc
Handle returns an http.HandlerFunc
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