handlers

package
v0.0.0-...-7e28eb6 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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

func GetEmployeeFromTCD(context *gin.Context, employee *database.Employee) (bool, error)

Returns data from the postgres database - aka the TCD

func GetEmployeeFromWorkdayAPI

func GetEmployeeFromWorkdayAPI(context *gin.Context, employee *database.Employee) (bool, error)

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 PostPunch

func PostPunch(context *gin.Context)

Punch adds an in or out punch as determined by the body sent

func SendEventHandler

func SendEventHandler(context *gin.Context)

SendEventHandler passes an event to the messenger

Types

This section is empty.

Jump to

Keyboard shortcuts

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