Documentation
¶
Overview ¶
Package cdn provides functionality for downloading Path of Exile game bundles from CDN servers. It handles URL construction, index file downloads, and bundle downloads with progress tracking for both single and multiple bundle operations.
Index ¶
- Constants
- func ConstructURL(gameVersion int, patch string, filename string) string
- func DownloadBundle(cache *cache.Cache, patch string, gameVersion int, bundleName string, ...) error
- func DownloadBundles(cache *cache.Cache, patch string, gameVersion int, bundleNames []string, ...) error
- func DownloadIndex(cache *cache.Cache, patch string, gameVersion int, force bool) error
Constants ¶
View Source
const ( // CDN base URLs for different game versions PoE1CDNURL = "https://patch.poecdn.com" PoE2CDNURL = "https://patch-poe2.poecdn.com" // Default download configuration DefaultRetries = 3 DefaultTimeout = 30 // seconds )
Constants for CDN operations
Variables ¶
This section is empty.
Functions ¶
func ConstructURL ¶
ConstructURL builds the CDN URL based on game version and patch. Game versions >= 4 use the PoE2 CDN, while older versions use PoE1 CDN.
func DownloadBundle ¶
func DownloadBundle(cache *cache.Cache, patch string, gameVersion int, bundleName string, force bool) error
DownloadBundle downloads a single bundle. This function handles the download of both regular bundles and the special index bundle.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.