types

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Contributor

type Contributor struct {
	Username      string `json:"username"`
	Contributions int    `json:"contributions"`
}

type GetPackageResponse

type GetPackageResponse struct {
	PackageItem
	Contributors []Contributor `json:"contributors"`
	Versions     []Version     `json:"versions"`
}

type PackageItem

type PackageItem struct {
	Identifier  string   `json:"identifier"`
	Name        string   `json:"name"`
	Description string   `json:"description"`
	Author      string   `json:"author"`
	Tags        []string `json:"tags"`
	AvatarURL   string   `json:"avatarUrl"`
	ProjectURL  string   `json:"projectUrl"`
	Hotness     int      `json:"hotness"`
	Updated     string   `json:"updated"`
}

type ResponseErr

type ResponseErr struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

type SearchPackagesResponse

type SearchPackagesResponse struct {
	PageIndex  int           `json:"pageIndex"`
	TotalPages int           `json:"totalPages"`
	Items      []PackageItem `json:"items"`
}

type Version

type Version struct {
	Version                    string `json:"version"`
	ReleasedAt                 string `json:"releasedAt"`
	Source                     string `json:"source"`
	PackageManager             string `json:"packageManager"`
	PlatformVersionRequirement string `json:"platformVersionRequirement"`
}

Jump to

Keyboard shortcuts

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