cron

package
v1.0.22 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2025 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreditGrantCronHandler added in v1.0.18

type CreditGrantCronHandler struct {
	// contains filtered or unexported fields
}

func NewCreditGrantCronHandler added in v1.0.18

func NewCreditGrantCronHandler(creditGrantService service.CreditGrantService, log *logger.Logger) *CreditGrantCronHandler

func (*CreditGrantCronHandler) ProcessScheduledCreditGrantApplications added in v1.0.18

func (h *CreditGrantCronHandler) ProcessScheduledCreditGrantApplications(c *gin.Context)

type SubscriptionHandler

type SubscriptionHandler struct {
	// contains filtered or unexported fields
}

SubscriptionHandler handles subscription related cron jobs

func NewSubscriptionHandler

func NewSubscriptionHandler(
	subscriptionService service.SubscriptionService,
	temporalService *temporal.Service,
	logger *logger.Logger,
) *SubscriptionHandler

NewSubscriptionHandler creates a new subscription handler

func (*SubscriptionHandler) GenerateInvoice

func (h *SubscriptionHandler) GenerateInvoice(c *gin.Context)

func (*SubscriptionHandler) UpdateBillingPeriods

func (h *SubscriptionHandler) UpdateBillingPeriods(c *gin.Context)

type WalletCronHandler

type WalletCronHandler struct {
	// contains filtered or unexported fields
}

func NewWalletCronHandler

func NewWalletCronHandler(logger *logger.Logger,
	temporalService *temporal.Service,
	walletService service.WalletService,
	tenantService service.TenantService,
	environmentService service.EnvironmentService,
) *WalletCronHandler

func (*WalletCronHandler) CheckAlerts added in v1.0.21

func (h *WalletCronHandler) CheckAlerts(c *gin.Context)

CheckAlerts checks wallet balances and triggers alerts based on thresholds

func (*WalletCronHandler) ExpireCredits

func (h *WalletCronHandler) ExpireCredits(c *gin.Context)

ExpireCredits finds and expires credits that have passed their expiry date

Jump to

Keyboard shortcuts

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