Documentation ¶
Index ¶
- func CloseDB(db *sql.DB)
- func CreateTable()
- func Exec(tx *sql.Tx, stmt *sql.Stmt, args ...interface{})
- func Prepare(query string) (db *sql.DB, tx *sql.Tx, stmt *sql.Stmt)
- func UpdateJsons(all bool)
- func UpdateMapJson()
- func UpdateMapJsons()
- func WriteCryptosMapSQLDB(coinDataMap CoinDataMap)
- func WriteCryptosSQLDB(coinData CoinData)
- type ApiKeyData
- type CoinData
- type CoinDataMap
- type CoinDataMapUnmarshaler
- type CoinDatum
- type CoinDatumMap
- type MarketValue
- type Property
- type Urls
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTable ¶
func CreateTable()
func UpdateJsons ¶
func UpdateJsons(all bool)
func UpdateMapJson ¶
func UpdateMapJson()
func UpdateMapJsons ¶
func UpdateMapJsons()
func WriteCryptosMapSQLDB ¶
func WriteCryptosMapSQLDB(coinDataMap CoinDataMap)
func WriteCryptosSQLDB ¶
func WriteCryptosSQLDB(coinData CoinData)
Types ¶
type ApiKeyData ¶
type ApiKeyData struct {
ApiKey string `json:"api_key"`
}
type CoinData ¶
type CoinData struct {
CoinData []CoinDatum `json:"data"`
}
func ReadCryptosSQLDB ¶
func ReadCryptosSQLDB() CoinData
type CoinDataMap ¶
type CoinDataMap struct {
CoinDataMap []CoinDatumMap
}
func ReadMapJson200 ¶
func ReadMapJson200() CoinDataMap
func ReadMapJsons ¶
func ReadMapJsons() CoinDataMap
type CoinDataMapUnmarshaler ¶
type CoinDataMapUnmarshaler struct {
CoinDataMap map[string]json.RawMessage `json:"data"`
}
func ReadMapJson ¶
func ReadMapJson(filename string) CoinDataMapUnmarshaler
type CoinDatum ¶
type CoinDatum struct { Id int64 `json:"id"` Name string `json:"name"` Slug string Symbol string `json:"symbol"` Logo string DateAdded string `json:"date_added"` Properties Property `json:"quote"` Explorers []string Twitters []string Websites []string Chats []string Facebooks []string MessageBoards []string Technicals []string SourceCodes []string Announcements []string BscScan string EthScan string XrpScan string BscContract string EthContract string XrpContract string }
func ReadCryptoSQLDB ¶
type CoinDatumMap ¶
type CoinDatumMap struct { Id int64 `json:"id"` //Name string `json:"name"` //Symbol string `json:"symbol"` DateAdded string `json:"date_added"` //Category string `json:"category"` //Description string `json:"description"` Slug string `json:"slug"` Logo string `json:"logo"` //Subreddit string `json:"subreddit"` //Tags []string `json:"tags"` ////TagsName []string `json:"tags-names"` ////TagsGroups []string `json:"tags-groups"` URLs Urls `json:"urls"` }
type MarketValue ¶
type Property ¶
type Property struct {
Dollar MarketValue `json:"USD"`
}
type Urls ¶
type Urls struct { Twitter []string `json:"twitter"` Website []string `json:"website"` Chat []string `json:"chat"` Facebook []string `json:"facebook"` MessageBoard []string `json:"message_board"` Explorer []string `json:"explorer"` Technical []string `json:"technical_doc"` SourceCode []string `json:"source_code"` Announcement []string `json:"announcement"` }
Click to show internal directories.
Click to hide internal directories.