downloads

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2026 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanupAll

func CleanupAll(ctx context.Context)

func DownloadHandler

func DownloadHandler(c *gin.Context)

func Register

func Register(localPath, filename string) (string, error)

func StartCleanup

func StartCleanup(interval time.Duration)

Types

type DownloadEntry

type DownloadEntry struct {
	Token      string
	StorageKey string
	Filename   string
	ExpiresAt  time.Time
}

func Get

func Get(token string) (*DownloadEntry, error)

Jump to

Keyboard shortcuts

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