database

package
v0.0.0-...-d1aabf6 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

Close database

func GetCardsDatabase

func GetCardsDatabase() []types.ApiCard

GetCardsDatabase - Get cards database from database

func GetCardsDatabaseSyncTime

func GetCardsDatabaseSyncTime() time.Time

GetCardsDatabaseSyncTime - Get time of hearthstonejson.com synchronization

func GetCardsUsage

func GetCardsUsage() types.CardUsageData

GetCardsUsage - Get cards usage from database

func GetCardsUsageSyncTime

func GetCardsUsageSyncTime() time.Time

GetCardsUsageSyncTime - Get time of hsreplay.net synchronization

func GetDirectory

func GetDirectory() string

GetDirectory - Get directory location with database and other files

func GetHearthPwnUser

func GetHearthPwnUser() string

GetHearthPwnUser - Get hearthpwn.com user name for scraping data

func GetMyCards

func GetMyCards() []types.MyCard

GetMyCards - Get my cards info from database

func GetMyCardsSyncTime

func GetMyCardsSyncTime() time.Time

GetMyCardsSyncTime - Get time of hearthpwn.com synchronization

func Initialize

func Initialize()

Initialize database

func SaveCardsDatabase

func SaveCardsDatabase(cardsDatabase []types.ApiCard)

SaveCardsDatabase - Save cards database to database

func SaveCardsUsage

func SaveCardsUsage(cardsUsage types.CardUsageData)

SaveCardsUsage - Save cards usage to database

func SaveMyCards

func SaveMyCards(cards []types.MyCard)

SaveMyCards - Save my cards info to database

func SetHearthPwnUser

func SetHearthPwnUser(user string)

SetHearthPwnUser - Set hearthpwn.com user name for scraping data

Types

This section is empty.

Jump to

Keyboard shortcuts

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