Documentation
¶
Index ¶
- func FindCardsBuilder(cli *mongo.Client) func(context.Context, string, ...string) ([]*Card, error)
- func GetLang(cli *mongo.Client) func(ctx context.Context, guild string) (string, error)
- func GetTemplate(cli *mongo.Client) func(ctx context.Context, guild string) (string, string, error)
- func InsertBuilder(cli *mongo.Client) func(context.Context, *SetBundle) error
- func SaveLang(cli *mongo.Client) func(ctx context.Context, guild string, lang string) error
- func SaveURLTemplate(cli *mongo.Client) func(ctx context.Context, guild string, template string, label string) error
- func SearchByNameBuilder(cli *mongo.Client) func(context.Context, string, string) ([]*Card, error)
- func UpdateSetBundles(ctx context.Context, bundleVersion string, ...) error
- type Card
- type SetBundle
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindCardsBuilder ¶
func GetTemplate ¶
func SaveURLTemplate ¶
func SearchByNameBuilder ¶
Types ¶
type Card ¶
type Card struct { CardCode string `json:"cardCode"` AssociatedCards []string `json:"associatedCards"` AssociatedCardRefs []string `json:"associatedCardRefs"` Assets []struct { GameAbsolutePath string `json:"gameAbsolutePath"` FullAbsolutePath string `json:"fullAbsolutePath"` } `json:"assets"` Regions []string `json:"regions"` RegionRefs []string `json:"regionRefs"` Attack int `json:"attack"` Cost int `json:"cost"` Health int `json:"health"` Description string `json:"description"` DescriptionRaw string `json:"descriptionRaw"` LevelupDescription string `json:"levelupDescription"` LevelupDescriptionRaw string `json:"levelupDescriptionRaw"` FlavorText string `json:"flavorText"` ArtistName string `json:"artistName"` Name string `json:"name"` Keywords []string `json:"keywords"` KeywordRefs []string `json:"keywordRefs"` SpellSpeed string `json:"spellSpeed"` SpellSpeedRef string `json:"spellSpeedRef"` Rarity string `json:"rarity"` RarityRef string `json:"rarityRef"` Subtypes []string `json:"subtypes"` Supertype string `json:"supertype"` Type string `json:"type"` Collectible bool `json:"collectible"` Set string `json:"set"` Formats []string `json:"formats"` FormatRefs []string `json:"formatRefs"` TypeRef string SupertypeRef string }
Click to show internal directories.
Click to hide internal directories.