alerts

package
v0.0.0-...-64a628e Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

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