employee

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EMPLOYEE_BUCKET = "EMPLOYEE"
)

Variables

This section is empty.

Functions

func DownloadCachedEmployees

func DownloadCachedEmployees(db *bolt.DB) error

DownloadCachedEmployees makes a call to WSO2 to get the employee cache

func GetCache added in v0.3.4

func GetCache(db *bolt.DB) (structs.EmployeeCache, error)

func GetEmployeeFromCache

func GetEmployeeFromCache(byuID string, db *bolt.DB) (structs.EmployeeRecord, error)

GetEmployeeFromCache looks up an employee in the cache

func WatchForCachedEmployees

func WatchForCachedEmployees(updateNowChan chan struct{}, db *bolt.DB)

WatchForCachedEmployees will start a timer and download the cache every 4 hours

Types

This section is empty.

Jump to

Keyboard shortcuts

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