Documentation
¶
Index ¶
- func Follow(db *bun.DB, db_config *bun.DB) error
- func ImportList(db *bun.DB, topPackages []string) error
- func ImportListWithBatching(db *bun.DB, topPackages []string) error
- func ImportTopPackages(db *bun.DB, db_config *bun.DB) error
- func NormalizeDependencies(deps interface{}) map[string]string
- func NormalizeFunding(funding interface{}) interface{}
- func UpdatePackage(db *bun.DB, name string) error
- func UpdatePackagesBatch(db *bun.DB, packageNames []string) error
- type List
- type PackagistAuthor
- type PackagistDist
- type PackagistFunding
- type PackagistPackage
- type PackagistPackageDetails
- type PackagistSearchItem
- type PackagistSearchResult
- type PackagistSource
- type PackagistVersionInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ImportList ¶
ImportList imports a list of PHP packages from Packagist
func ImportListWithBatching ¶
ImportListWithBatching imports a list of PHP packages using batch processing for improved performance
func ImportTopPackages ¶
ImportTopPackages imports top PHP packages from a predefined list
func NormalizeDependencies ¶
NormalizeDependencies converts various dependency formats to a consistent map[string]string
func NormalizeFunding ¶
func NormalizeFunding(funding interface{}) interface{}
NormalizeFunding converts various funding formats to a consistent structure
func UpdatePackage ¶
UpdatePackage updates a PHP package in the database
Types ¶
type PackagistAuthor ¶
type PackagistDist ¶
type PackagistFunding ¶
type PackagistPackage ¶
type PackagistPackage struct {
Package PackagistPackageDetails `json:"package"`
}
PackagistPackage represents a package from Packagist API
type PackagistPackageDetails ¶
type PackagistPackageDetails struct {
Name string `json:"name"`
Description string `json:"description"`
Time string `json:"time"`
Type string `json:"type"`
Keywords []string `json:"keywords"`
Homepage string `json:"homepage"`
Repository string `json:"repository"`
Versions map[string]PackagistVersionInfo `json:"versions"`
}
type PackagistSearchItem ¶
type PackagistSearchResult ¶
type PackagistSearchResult struct {
Results []PackagistSearchItem `json:"results"`
Total int `json:"total"`
Next string `json:"next"`
}
PackagistSearchResult represents search results from Packagist
type PackagistSource ¶
type PackagistVersionInfo ¶
type PackagistVersionInfo struct {
Name string `json:"name"`
Version string `json:"version"`
VersionNormalized string `json:"version_normalized"`
Source PackagistSource `json:"source"`
Dist PackagistDist `json:"dist"`
Require interface{} `json:"require"` // Can be map[string]string or string
RequireDev interface{} `json:"require-dev"` // Can be map[string]string or string
Suggest interface{} `json:"suggest"` // Can be map[string]string or string
Provide interface{} `json:"provide"` // Can be map[string]string or string
Replace interface{} `json:"replace"` // Can be map[string]string or string
Conflict interface{} `json:"conflict"` // Can be map[string]string or string
Time string `json:"time"`
Type string `json:"type"`
Extra interface{} `json:"extra"` // Can be string or map
InstallationSource string `json:"installation-source"`
Autoload interface{} `json:"autoload"` // Can be map or string
NotificationUrl string `json:"notification-url"`
License interface{} `json:"license"` // Can be string or []string
Authors []PackagistAuthor `json:"authors"`
Description string `json:"description"`
Keywords []string `json:"keywords"`
Homepage string `json:"homepage"`
Support interface{} `json:"support"` // Can be map or string
Funding interface{} `json:"funding"` // Can be string or []PackagistFunding
}
Click to show internal directories.
Click to hide internal directories.