Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 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 RecursiveCardItem ¶ added in v0.2.3
type RecursiveCollectionItem ¶ added in v0.2.3
type RecursiveDeckItem ¶ added in v0.2.3
type RecursiveSearchItems ¶ added in v0.2.3
type RecursiveSearchItems struct {
Games []string `json:"games,omitempty"`
Collections []RecursiveCollectionItem `json:"collections,omitempty"`
Decks []RecursiveDeckItem `json:"decks,omitempty"`
Cards []RecursiveCardItem `json:"cards,omitempty"`
}
type SettingInfo ¶
type SettingInfo struct {
Lang string `json:"lang"`
}
func NewSettings ¶
func NewSettings() *SettingInfo
Click to show internal directories.
Click to hide internal directories.