Documentation ¶
Index ¶
- func IsArray(pt ProductType) bool
- func IsDetail(pt ProductType) bool
- func IsPaged(pt ProductType) bool
- func RequiresAuth(pt ProductType) bool
- func SupportsCopy(from, to ProductType) bool
- func SupportsGetItems(pt ProductType) bool
- func SupportsImageType(pt ProductType, it vangogh_images.ImageType) bool
- func SupportsMedia(pt ProductType, mt gog_atu.Media) bool
- func Valid(pt ProductType) bool
- type ProductType
- func AllSupportingImageType(imageType vangogh_images.ImageType) []ProductType
- func Array() []ProductType
- func Detail() []ProductType
- func Local() []ProductType
- func MainTypes(pt ProductType) []ProductType
- func Paged() []ProductType
- func Parse(productType string) ProductType
- func Remote() []ProductType
- func SplitType(pt ProductType) ProductType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsArray ¶
func IsArray(pt ProductType) bool
func IsDetail ¶
func IsDetail(pt ProductType) bool
func IsPaged ¶
func IsPaged(pt ProductType) bool
func RequiresAuth ¶
func RequiresAuth(pt ProductType) bool
func SupportsCopy ¶
func SupportsCopy(from, to ProductType) bool
func SupportsGetItems ¶
func SupportsGetItems(pt ProductType) bool
func SupportsImageType ¶
func SupportsImageType(pt ProductType, it vangogh_images.ImageType) bool
func SupportsMedia ¶
func SupportsMedia(pt ProductType, mt gog_atu.Media) bool
func Valid ¶
func Valid(pt ProductType) bool
Types ¶
type ProductType ¶
type ProductType int
const ( Unknown ProductType = iota StorePage StoreProducts AccountPage AccountProducts WishlistPage WishlistProducts Details ApiProductsV1 ApiProductsV2 Licences LicenceProducts OrderPage Orders )
func AllSupportingImageType ¶
func AllSupportingImageType(imageType vangogh_images.ImageType) []ProductType
func Array ¶
func Array() []ProductType
func Detail ¶
func Detail() []ProductType
func Local ¶
func Local() []ProductType
func MainTypes ¶
func MainTypes(pt ProductType) []ProductType
func Paged ¶
func Paged() []ProductType
func Parse ¶
func Parse(productType string) ProductType
func Remote ¶
func Remote() []ProductType
func SplitType ¶
func SplitType(pt ProductType) ProductType
func (ProductType) HumanReadableString ¶
func (pt ProductType) HumanReadableString() string
func (ProductType) String ¶
func (pt ProductType) String() string
Click to show internal directories.
Click to hide internal directories.