Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartLcidExpirationCheck ¶
func StartLcidExpirationCheck( ctx context.Context, fetchUserInfo func(context.Context, string) (*models.UserInfo, error), fetchSystemIntakes func(context.Context) (models.SystemIntakes, error), updateSystemIntake func(context.Context, *models.SystemIntake) (*models.SystemIntake, error), sendLCIDExpirationEmail func( ctx context.Context, recipients models.EmailNotificationRecipients, systemIntakeID uuid.UUID, projectName string, requesterName string, lcid string, lcidIssuedAt *time.Time, lcidExpirationDate *time.Time, scope models.HTML, lifecycleCostBaseline string, nextSteps models.HTML, ) error, lcidExpirationCheckTime time.Duration, )
StartLcidExpirationCheck starts a goroutine that will run `checkForLCIDExpiration` based on lcidExpirationCheckTime. StartLcidExpirationCheck returns no errors, and only logs when something goes wrong. Upon being called, StartLcidExpirationCheck will check for expiring LCIDs once immediately, then again at an interval specified by lcidExpirationCheckTime.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.