Documentation ¶
Overview ¶
Package handlers contains the http handlers which receive requests to be processed by the API.
Index ¶
- func CreateAuthCodeRequest(authCodeReqSvc *service.AuthCodeRequestService) http.Handler
- func GetAuthCodeRequest(authCodeReqSvc *service.AuthCodeRequestService) http.Handler
- func GetCompanyOfficer(w http.ResponseWriter, req *http.Request)
- func GetCompanyOfficers(w http.ResponseWriter, req *http.Request)
- func Register(mainRouter *mux.Router, cfg *config.Config, authCodeDao dao.AuthcodeDAOService, ...)
- func UpdateAuthCodeRequest(authCodeSvc *service.AuthCodeService, ...) http.Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAuthCodeRequest ¶
func CreateAuthCodeRequest(authCodeReqSvc *service.AuthCodeRequestService) http.Handler
CreateAuthCodeRequest creates the auth code request for a specific officer ID
func GetAuthCodeRequest ¶
func GetAuthCodeRequest(authCodeReqSvc *service.AuthCodeRequestService) http.Handler
GetAuthCodeRequest returns an auth code request for a specified auth-code-request ID
func GetCompanyOfficer ¶
func GetCompanyOfficer(w http.ResponseWriter, req *http.Request)
GetCompanyOfficer returns a single company officer who may apply for an auth code
func GetCompanyOfficers ¶
func GetCompanyOfficers(w http.ResponseWriter, req *http.Request)
GetCompanyOfficers returns a list of valid company officers who may apply for an auth code
func Register ¶
func Register(mainRouter *mux.Router, cfg *config.Config, authCodeDao dao.AuthcodeDAOService, authCodeRequestDao dao.AuthcodeRequestDAOService)
Register defines the endpoints for the API
func UpdateAuthCodeRequest ¶
func UpdateAuthCodeRequest(authCodeSvc *service.AuthCodeService, authCodeReqSvc *service.AuthCodeRequestService) http.Handler
UpdateAuthCodeRequest updates an auth code request for a specified auth-code-request ID
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.