handlers

package
v0.0.0-...-80e094b Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: MIT Imports: 13 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 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.

Jump to

Keyboard shortcuts

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