task

package
v1.1.10 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2025 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UnitTimeNoLimit = "NoLimit" // Unlimited time subscription
	UnitTimeYear    = "Year"    // Annual subscription
	UnitTimeMonth   = "Month"   // Monthly subscription
	UnitTimeDay     = "Day"     // Daily subscription
	UnitTimeHour    = "Hour"    // Hourly subscription
	UnitTimeMinute  = "Minute"  // Per-minute subscription

)

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorInfo

type ErrorInfo struct {
	UserSubscribeId int64  `json:"user_subscribe_id"`
	Error           string `json:"error"`
}

type QuotaTaskLogic

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

func NewQuotaTaskLogic

func NewQuotaTaskLogic(svcCtx *svc.ServiceContext) *QuotaTaskLogic

func (*QuotaTaskLogic) ProcessTask

func (l *QuotaTaskLogic) ProcessTask(ctx context.Context, t *asynq.Task) error

type RateLogic added in v1.1.8

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

func NewRateLogic added in v1.1.8

func NewRateLogic(svcCtx *svc.ServiceContext) *RateLogic

func (*RateLogic) ProcessTask added in v1.1.8

func (l *RateLogic) ProcessTask(ctx context.Context, _ *asynq.Task) error

Jump to

Keyboard shortcuts

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