Versions in this module Expand all Collapse all v0 v0.2.0 Jan 31, 2024 Changes in this version + const DefaultUserAgent + func ApplyPatches(metadata map[string]interface{}, src, dst string) error + func CloneRequest(req *proxy.Request) (*http.Request, error) + func DownloadApp(app *AppInfo, userAgent string, overwrite bool) (filename string, exists bool, err error) + func DownloadFile(url string, filepath string, userAgent string) (err error) + func GzipDecode(p []byte) ([]byte, error) + func GzipDecodeReader(r io.Reader) ([]byte, error) + func ReplicateSinf(sinfs []*Sinf, packagePath string) error + type Addon struct + ClientUserAgent string + Done chan<- bool + DumpResponses bool + End int + HistoryVersions []*AppInfo + Lock *sync.Mutex + Start int + func (c *Addon) Request(f *proxy.Flow) + func (c *Addon) Response(f *proxy.Flow) + type AppInfo struct + ArtistName string + BundleDisplayName string + BundleShortVersionString string + Data []byte + ItemName string + SoftwareVersionExternalIdentifier uint64 + SoftwareVersionExternalIdentifiers []uint64 + func GetAppInfo(data []byte) (*AppInfo, error) + type DownloadItemResult struct + ArtworkURL string + MD5 string + Metadata map[string]interface{} + Sinfs []*Sinf + URL string + func GetDownloadItemResult(data []byte) (*DownloadItemResult, error) + type DownloadResult struct + CustomerMessage string + FailureType string + Items []*DownloadItemResult + type Pair struct + First T + Second U + func Zip[T, U any](ts []T, us []U) ([]Pair[T, U], error) + type Sinf struct + Data []byte + ID int64 + type WriteCounter struct + Count int + Total int + func NewWriteCounter(total int) *WriteCounter + func (wc *WriteCounter) PrintProgress() + func (wc *WriteCounter) Write(p []byte) (int, error)