cron

package
v0.0.0-...-6b36e67 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartCronJobs

func StartCronJobs(db *gorm.DB, cnf *config.Config)

Types

type CronService

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

func (*CronService) CleanFiles

func (c *CronService) CleanFiles(ctx context.Context)

func (*CronService) CleanUploads

func (c *CronService) CleanUploads(ctx context.Context)

func (*CronService) UpdateFolderSize

func (c *CronService) UpdateFolderSize()

type File

type File struct {
	ID    string        `json:"id"`
	Parts []models.Part `json:"parts"`
}

type Files

type Files []File

func (*Files) Scan

func (a *Files) Scan(value interface{}) error

func (Files) Value

func (a Files) Value() (driver.Value, error)

type Result

type Result struct {
	Files     Files
	Session   string
	UserId    int64
	ChannelId int64
}

type UpParts

type UpParts []int

func (*UpParts) Scan

func (a *UpParts) Scan(value interface{}) error

func (UpParts) Value

func (a UpParts) Value() (driver.Value, error)

type UploadResult

type UploadResult struct {
	Parts     UpParts
	Session   string
	UserId    int64
	ChannelId int64
}

Jump to

Keyboard shortcuts

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