Add a new Go client implementation for interacting with the IPAGo server. The client includes functionality for authentication, searching for apps, and downloading apps. The client is structured to handle errors and retries, and includes progress reporting for downloads. The client is added to the .gitignore file and the README.md file is updated with installation instructions. The server-side code is also updated to include the Content-Length header for download progress reporting.
15 lines
437 B
Go
15 lines
437 B
Go
package models
|
|
|
|
import "github.com/danielgtaylor/huma/v2"
|
|
|
|
type DownloadInput struct {
|
|
BundleID string `query:"bundleID" doc:"ID приложения" minLength:"3" example:"com.zhiliaoapp.musically"`
|
|
}
|
|
|
|
type DownloadOutput struct {
|
|
Body func(huma.Context)
|
|
ContentDisposition string `header:"Content-Disposition"`
|
|
ContentType string `header:"Content-Type"`
|
|
ContentLength int64 `header:"Content-Length"`
|
|
}
|