models

package
v0.0.0-...-40979bf Latest Latest
Warning

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

Go to latest
Published: May 9, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseResponse

type BaseResponse struct {
	Data   interface{} `json:"data"`
	Status int         `json:"status"`
	Error  string      `json:"error"`
}

type CoinGeckoCoinInfo

type CoinGeckoCoinInfo struct {
	ID         string              `json:"id"`
	Symbol     string              `json:"symbol"`
	Name       string              `json:"name"`
	MarketData CoinGeckoMarketData `json:"market_data"`
}

type CoinGeckoCoinListArray

type CoinGeckoCoinListArray []struct {
	ID     string `json:"id"`
	Symbol string `json:"symbol"`
	Name   string `json:"name"`
}

type CoinGeckoMarketData

type CoinGeckoMarketData struct {
	CurrentPrice map[string]float64 `json:"current_price"`
}

type Rate

type Rate struct {
	Code string          `json:"code"`
	Rate decimal.Decimal `json:"rate"`
}

type RatesResponse

type RatesResponse []Rate

Jump to

Keyboard shortcuts

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