handlers

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2025 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPackageInfo

func GetPackageInfo(ctx echo.Context) error

func HandleFinalize

func HandleFinalize(c echo.Context) error

func HandleNewUpload

func HandleNewUpload(ctx echo.Context) error

func HandleUpload

func HandleUpload(c echo.Context) error

Types

type ListingItem

type ListingItem struct {
	ArchiveSHA256 string         `json:"archive_sha256"`
	ArchiveURL    string         `json:"archive_url"`
	PublishDate   string         `json:"published"`
	Version       string         `json:"version"`
	PubSpec       map[string]any `json:"pubspec"`
}

type ListingResponse

type ListingResponse struct {
	Name     string        `json:"name"`
	Latest   ListingItem   `json:"latest"`
	Versions []ListingItem `json:"versions"`
}

type NewUploadResponse

type NewUploadResponse struct {
	URL    string            `json:"url"`
	Fields map[string]string `json:"fields"`
}

Jump to

Keyboard shortcuts

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