vangogh_products

package module
v0.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2022 License: MIT Imports: 2 Imported by: 5

README

vangogh_types

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL