Documentation ¶
Index ¶
- type CardArray
- type CardDescription
- type CardInfo
- type CardPage
- type CollectionInfo
- func (i *CollectionInfo) FillCachedImage(cfg *config.Config, gameID string)
- func (i *CollectionInfo) GetCreatedAt() time.Time
- func (i *CollectionInfo) GetName() string
- func (i *CollectionInfo) ImagePath(gameID string, cfg *config.Config) string
- func (i *CollectionInfo) Path(gameID string, cfg *config.Config) string
- type DeckArray
- type DeckInfo
- func (i *DeckInfo) FillCachedImage(cfg *config.Config, gameID, collectionID string)
- func (i *DeckInfo) GetCreatedAt() time.Time
- func (i *DeckInfo) GetName() string
- func (i *DeckInfo) ImagePath(gameID, collectionID string, cfg *config.Config) string
- func (i *DeckInfo) Path(gameID, collectionID string, cfg *config.Config) string
- type DeckType
- type GameInfo
- type PageInfo
- type SettingInfo
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CardArray ¶
type CardArray struct {
Pages []CardPage
}
CardArray Array of pages cards in same deck type
func NewCardArray ¶
func NewCardArray() *CardArray
type CardDescription ¶
CardDescription Full description for single card
type CardInfo ¶
type CardInfo struct { ID int64 `json:"id"` Name string `json:"name"` Description string `json:"description"` Image string `json:"image"` CachedImage string `json:"cachedImage,omitempty"` Variables map[string]string `json:"variables"` Count int `json:"count"` CreatedAt *time.Time `json:"createdAt"` UpdatedAt *time.Time `json:"updatedAt"` }
func (*CardInfo) FillCachedImage ¶
func (*CardInfo) GetCreatedAt ¶
type CollectionInfo ¶
type CollectionInfo struct { ID string `json:"id"` Name string `json:"name"` Description string `json:"description"` Image string `json:"image"` CachedImage string `json:"cachedImage,omitempty"` CreatedAt *time.Time `json:"createdAt"` UpdatedAt *time.Time `json:"updatedAt"` }
func (*CollectionInfo) FillCachedImage ¶
func (i *CollectionInfo) FillCachedImage(cfg *config.Config, gameID string)
func (*CollectionInfo) GetCreatedAt ¶
func (i *CollectionInfo) GetCreatedAt() time.Time
func (*CollectionInfo) GetName ¶
func (i *CollectionInfo) GetName() string
type DeckArray ¶
DeckArray Full collection of different deck types split by pages
func NewDeckArray ¶
func NewDeckArray() *DeckArray
func (*DeckArray) SelectDeck ¶
SelectDeck Allows you to select the type of deck to which cards will be added in the following calls to the AddCard() method
type DeckInfo ¶
type DeckInfo struct { ID string `json:"id"` Name string `json:"name"` Description string `json:"description"` Image string `json:"image"` CachedImage string `json:"cachedImage,omitempty"` CreatedAt *time.Time `json:"createdAt"` UpdatedAt *time.Time `json:"updatedAt"` }
func (*DeckInfo) FillCachedImage ¶
func (*DeckInfo) GetCreatedAt ¶
type GameInfo ¶
type GameInfo struct { ID string `json:"id"` Name string `json:"name"` Description string `json:"description"` Image string `json:"image"` CachedImage string `json:"cachedImage,omitempty"` CreatedAt *time.Time `json:"createdAt"` UpdatedAt *time.Time `json:"updatedAt"` }
func (*GameInfo) FillCachedImage ¶
func (*GameInfo) GetCreatedAt ¶
type SettingInfo ¶
type SettingInfo struct {
Lang string `json:"lang"`
}
func NewSettings ¶
func NewSettings() *SettingInfo
Click to show internal directories.
Click to hide internal directories.