handlers

package
v0.0.0-...-0ca455c Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2023 License: MIT Imports: 22 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 CreatePayableResourceHandler

func CreatePayableResourceHandler(svc dao.Service) http.Handler

CreatePayableResourceHandler takes a http requests and creates a new payable resource

func HandleGetPayableResource

func HandleGetPayableResource(w http.ResponseWriter, req *http.Request)

HandleGetPayableResource retrieves the payable resource from request context

func HandleGetPaymentDetails

func HandleGetPaymentDetails(w http.ResponseWriter, req *http.Request)

HandleGetPaymentDetails retrieves costs for a supplied company number and reference.

func HandleGetPenalties

func HandleGetPenalties(w http.ResponseWriter, req *http.Request)

HandleGetPenalties retrieves the penalty details for the supplied company number from e5

func HandleHealthCheckFinanceSystem

func HandleHealthCheckFinanceSystem(w http.ResponseWriter, r *http.Request)

HandleHealthCheckFinanceSystem checks whether the e5 system is available to take requests

func PayResourceHandler

func PayResourceHandler(svc *service.PayableResourceService, e5Client *e5.Client) http.Handler

PayResourceHandler will update the resource to mark it as paid and also tell the finance system that the transaction(s) associated with it are paid.

func Register

func Register(mainRouter *mux.Router, cfg *config.Config, svc dao.Service)

Register defines the route mappings for the main router and it's subrouters

Types

This section is empty.

Jump to

Keyboard shortcuts

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