Documentation ¶
Index ¶
- Constants
- Variables
- func Auth(username, password string) error
- func AuthHandler(u *url.URL) error
- func Cleanup(idSet map[string]bool, mt gog_integration.Media, ...) error
- func CleanupHandler(u *url.URL) error
- func Digest(property string) error
- func DigestHandler(u *url.URL) error
- func Export() error
- func ExportHandler(u *url.URL) error
- func GetData(idSet map[string]bool, skipIds []string, pt vangogh_local_data.ProductType, ...) error
- func GetDataHandler(u *url.URL) error
- func GetDownloads(idSet map[string]bool, mt gog_integration.Media, ...) error
- func GetDownloadsHandler(u *url.URL) error
- func GetImages(idSet map[string]bool, its []vangogh_local_data.ImageType, missing bool) error
- func GetImagesHandler(u *url.URL) error
- func GetVideos(idSet map[string]bool, missing bool) error
- func GetVideosHandler(u *url.URL) error
- func Info(idSet map[string]bool, allText, images, videoId bool) error
- func InfoHandler(u *url.URL) error
- func List(idSet map[string]bool, modifiedSince int64, pt vangogh_local_data.ProductType, ...) error
- func ListHandler(u *url.URL) error
- func NegOpt(option string) string
- func Owned(idSet map[string]bool) error
- func OwnedHandler(u *url.URL) error
- func Reduce(since int64, mt gog_integration.Media, properties []string) error
- func ReduceHandler(u *url.URL) error
- func Search(query map[string][]string) error
- func SearchHandler(u *url.URL) error
- func Serve(port int, stderr bool) error
- func ServeHandler(u *url.URL) error
- func Size(idSet map[string]bool, mt gog_integration.Media, ...) error
- func SizeHandler(u *url.URL) error
- func Summary(mt gog_integration.Media, since int64) error
- func SummaryHandler(u *url.URL) error
- func Sync(mt gog_integration.Media, since int64, syncOpts *syncOptions, ...) error
- func SyncHandler(u *url.URL) error
- func Tag(idSet map[string]bool, operation, tagName string) error
- func TagHandler(u *url.URL) error
- func UpdateDownloads(mt gog_integration.Media, ...) error
- func UpdateDownloadsHandler(u *url.URL) error
- func Validate(idSet map[string]bool, mt gog_integration.Media, ...) error
- func ValidateHandler(u *url.URL) error
- func Vet(mt gog_integration.Media, vetOpts *vetOptions, ...) error
- func VetHandler(u *url.URL) error
- func Wishlist(mt gog_integration.Media, addProductIds, removeProductIds []string) error
- func WishlistHandler(u *url.URL) error
Constants ¶
View Source
const ( SyncOptionData = "data" SyncOptionImages = "images" SyncOptionScreenshots = "screenshots" SyncOptionVideos = "videos" SyncOptionDownloadsUpdates = "downloads-Updates" )
View Source
const ( VetOptionLocalOnlyData = "local-only-data" VetOptionLocalOnlyImages = "local-only-images" VetOptionRecycleBin = "recycle-bin" VetOptionInvalidData = "invalid-data" VetOptionUnresolvedManualUrls = "unresolved-manual-urls" )
Variables ¶
View Source
var ( ErrUnresolvedManualUrl = errors.New("unresolved manual-url") ErrMissingDownload = errors.New("not downloaded") ErrMissingChecksum = errors.New("missing checksum") ErrValidationNotSupported = errors.New("validation not supported") ErrValidationFailed = errors.New("failed validation") )
Functions ¶
func AuthHandler ¶
func Cleanup ¶
func Cleanup( idSet map[string]bool, mt gog_integration.Media, operatingSystems []vangogh_local_data.OperatingSystem, downloadTypes []vangogh_local_data.DownloadType, langCodes []string, all, test bool) error
func CleanupHandler ¶
func DigestHandler ¶
func ExportHandler ¶
func GetData ¶
func GetData( idSet map[string]bool, skipIds []string, pt vangogh_local_data.ProductType, mt gog_integration.Media, since int64, missing bool, updated bool) error
GetData gets remote data from GOG.com and stores as local products (splitting as paged data if needed)
func GetDataHandler ¶
func GetDownloads ¶
func GetDownloads( idSet map[string]bool, mt gog_integration.Media, operatingSystems []vangogh_local_data.OperatingSystem, downloadTypes []vangogh_local_data.DownloadType, langCodes []string, missing, forceUpdate bool) error
func GetDownloadsHandler ¶
func GetImages ¶
GetImages fetches remote images for a given type (box-art, screenshots, background, etc.). If requested it can check locally present files and download all missing (used in data files, but not present locally) images for a given type.
func GetImagesHandler ¶
func GetVideosHandler ¶
func InfoHandler ¶
func List ¶
func List( idSet map[string]bool, modifiedSince int64, pt vangogh_local_data.ProductType, mt gog_integration.Media, properties []string) error
List prints products of a certain type and media. Can be filtered to products that were created or modified since a certain time. Provided properties will be printed for each product (if supported) in addition to default ID, Title.
func ListHandler ¶
func OwnedHandler ¶
func ReduceHandler ¶ added in v0.2.22
func SearchHandler ¶
func ServeHandler ¶
func Size ¶
func Size( idSet map[string]bool, mt gog_integration.Media, operatingSystems []vangogh_local_data.OperatingSystem, downloadTypes []vangogh_local_data.DownloadType, langCodes []string, missing bool, all bool) error
func SizeHandler ¶
func SummaryHandler ¶
func Sync ¶
func Sync( mt gog_integration.Media, since int64, syncOpts *syncOptions, operatingSystems []vangogh_local_data.OperatingSystem, downloadTypes []vangogh_local_data.DownloadType, langCodes []string, updatesOnly bool) error
func SyncHandler ¶
func TagHandler ¶
func UpdateDownloads ¶
func UpdateDownloads( mt gog_integration.Media, operatingSystems []vangogh_local_data.OperatingSystem, downloadTypes []vangogh_local_data.DownloadType, langCodes []string, since int64, updatesOnly bool) error
func UpdateDownloadsHandler ¶
func Validate ¶
func Validate( idSet map[string]bool, mt gog_integration.Media, operatingSystems []vangogh_local_data.OperatingSystem, downloadTypes []vangogh_local_data.DownloadType, langCodes []string, all bool) error
func ValidateHandler ¶
func Vet ¶
func Vet( mt gog_integration.Media, vetOpts *vetOptions, operatingSystems []vangogh_local_data.OperatingSystem, downloadTypes []vangogh_local_data.DownloadType, langCodes []string, fix bool) error
func VetHandler ¶
func Wishlist ¶
func Wishlist(mt gog_integration.Media, addProductIds, removeProductIds []string) error
func WishlistHandler ¶
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.