Documentation
¶
Index ¶
- func DetermineIfClockedIn(period_blocks *[]database.PeriodBlocks, ...) error
- func GetEmployeeFromTCD(context *gin.Context, employee *database.Employee) (bool, error)
- func GetEmployeeFromWorkdayAPI(context *gin.Context, employee *database.Employee) (bool, error)
- func GetEmployeePunchesFromTCD(context *gin.Context, employee *database.Employee) (int, bool, error)
- func PostPunch(context *gin.Context)
- func SendEventHandler(context *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetermineIfClockedIn ¶
func DetermineIfClockedIn(period_blocks *[]database.PeriodBlocks, period_punches *[]database.PeriodPunches, employee *database.Employee) error
func GetEmployeeFromTCD ¶
Returns data from the postgres database - aka the TCD
func GetEmployeeFromWorkdayAPI ¶
Attempts to get data from the Workday custom API - returns
func GetEmployeePunchesFromTCD ¶
func GetEmployeePunchesFromTCD(context *gin.Context, employee *database.Employee) (int, bool, error)
adds in any punches from the TCD that have not been uploaded to Workday - uses employee.Worker_ID - must be defined before running
func SendEventHandler ¶
SendEventHandler passes an event to the messenger
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.