Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllBanStatus = []BanStatus{ BanStatusUnlimited, BanStatusSemiLimited, BanStatusLimited, BanStatusForbidden, }
View Source
var AllGameCode = []GameCode{ GameCodeYgo, GameCodeOpc, GameCodeWs, }
Functions ¶
This section is empty.
Types ¶
type BanStatus ¶ added in v0.1.7
type BanStatus string
func (BanStatus) MarshalGQL ¶ added in v0.1.7
func (*BanStatus) UnmarshalGQL ¶ added in v0.1.7
type Card ¶
type Card struct { Code string `json:"code"` JpName string `json:"jpName"` Rarity string `json:"rarity"` Condition *string `json:"condition,omitempty"` Price int `json:"price"` Source string `json:"source"` Currency *Currency `json:"currency"` Image *string `json:"image,omitempty"` Score *int `json:"score,omitempty"` Game *Game `json:"game,omitempty"` Detail *DetailInfo `json:"detail,omitempty"` }
type Currency ¶
type Currency struct { Code string `json:"code"` NumericCode string `json:"numericCode"` Fraction int `json:"fraction"` Grapheme string `json:"grapheme"` Template string `json:"template"` Decimal string `json:"decimal"` Thousand string `json:"thousand"` }
func ToCurrency ¶
type DetailInfo ¶ added in v0.1.7
type DetailInfo struct { EngName *string `json:"engName,omitempty"` CardType *string `json:"cardType,omitempty"` Property *string `json:"property,omitempty"` Attribute *string `json:"attribute,omitempty"` Types []*string `json:"types,omitempty"` Level *string `json:"level,omitempty"` LinkArrows *string `json:"linkArrows,omitempty"` Attack *string `json:"attack,omitempty"` Defence *string `json:"defence,omitempty"` Link *string `json:"link,omitempty"` EffectTypes []*string `json:"effectTypes,omitempty"` Effect *string `json:"effect,omitempty"` Pendulum *Pendulum `json:"pendulum,omitempty"` Status *BanStatus `json:"status,omitempty"` Power *string `json:"power,omitempty"` Colors []*string `json:"colors,omitempty"` Product *string `json:"product,omitempty"` Rarity *string `json:"rarity,omitempty"` Life *string `json:"life,omitempty"` Category *string `json:"category,omitempty"` Cost *string `json:"cost,omitempty"` Counter *string `json:"counter,omitempty"` Traits []*string `json:"traits,omitempty"` Trigger *string `json:"trigger,omitempty"` Soul *string `json:"soul,omitempty"` }
func ToDetailInfo ¶ added in v0.1.7
func ToDetailInfo(d *source.DetailInfo) *DetailInfo
type ExchangeRate ¶
type ExchangeRate struct { From *Currency `json:"from"` To *Currency `json:"to"` Rate float64 `json:"rate"` }
func ToRate ¶
func ToRate(rate *rate.ExchangeRate) *ExchangeRate
func ToRates ¶
func ToRates(rates []*rate.ExchangeRate) []*ExchangeRate
type Game ¶ added in v0.1.4
type GameCode ¶ added in v0.1.4
type GameCode string
func (GameCode) MarshalGQL ¶ added in v0.1.4
func (*GameCode) UnmarshalGQL ¶ added in v0.1.4
Click to show internal directories.
Click to hide internal directories.