Documentation ¶
Index ¶
- func GetAllExchanges(j *jdb.JDB)
- func GetBaseExchanges(j *jdb.JDB)
- func GetExchange(slug string)
- func GetExchanges(j *jdb.JDB)
- func ViewMarket(w http.ResponseWriter, r *http.Request)
- type CoinMarket
- type CoinMarkets
- type Currency
- type Exchange
- type ExchangeQueries
- func (eq *ExchangeQueries) ExchangeHandler(w http.ResponseWriter, r *http.Request)
- func (eq *ExchangeQueries) ExchangesHandler(w http.ResponseWriter, r *http.Request)
- func (eq *ExchangeQueries) GetExchange(slug string) (Exchange, error)
- func (eq *ExchangeQueries) GetExchangeMarket(exchange, market string) (Market, error)
- func (eq *ExchangeQueries) GetExchangeMarkets(exchange string) (map[string]Market, error)
- func (cq *ExchangeQueries) GetExchanges() Exchanges
- func (eq *ExchangeQueries) MarketHandler(w http.ResponseWriter, r *http.Request)
- func (eq *ExchangeQueries) MarketsHandler(w http.ResponseWriter, r *http.Request)
- func (eq *ExchangeQueries) SetExchange(src, slug string, get func(e *Exchange))
- func (eq *ExchangeQueries) SetMarkets(slug string, marketsSrc map[string]MarketSrc)
- func (cq *ExchangeQueries) WriteExchange(slug string, c interface{}) error
- func (cq *ExchangeQueries) WriteMarkets(slug string, c interface{}) error
- type ExchangeShort
- type ExchangeSrc
- type ExchangeTicker
- type Exchanges
- type Market
- type MarketSrc
- type Markets
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllExchanges ¶
ReadAllExchanges reads in all of the data about all exchanges in the database
func GetBaseExchanges ¶
GetBaseExchanges reads in all of the data about all exchanges in the database
func GetExchange ¶
func GetExchange(slug string)
func GetExchanges ¶
GetExchanges reads in all of the data about all exchanges in the database
func ViewMarket ¶
func ViewMarket(w http.ResponseWriter, r *http.Request)
Types ¶
type CoinMarket ¶
type CoinMarkets ¶
type CoinMarkets map[string]CoinMarket
type Exchange ¶
type Exchange struct { Name string `json:"name"` Slug string `json:"slug"` Url string `json:"url"` Logo string `json:"logo"` Description string `json:"description"` Established string `json:"established"` Country string `json:"country"` Volume float64 `json:"volume"` Markets []Market `json:"markets"` }
func NewExchange ¶
func (*Exchange) SetDescription ¶
func (e *Exchange) SetDescription(description interface{})
type ExchangeQueries ¶
type ExchangeQueries struct {
// contains filtered or unexported fields
}
func (*ExchangeQueries) ExchangeHandler ¶
func (eq *ExchangeQueries) ExchangeHandler(w http.ResponseWriter, r *http.Request)
CoinsHandler handles a request for coin data
func (*ExchangeQueries) ExchangesHandler ¶
func (eq *ExchangeQueries) ExchangesHandler(w http.ResponseWriter, r *http.Request)
CoinsHandler handles a request for coin data
func (*ExchangeQueries) GetExchange ¶
func (eq *ExchangeQueries) GetExchange(slug string) (Exchange, error)
func (*ExchangeQueries) GetExchangeMarket ¶
func (eq *ExchangeQueries) GetExchangeMarket(exchange, market string) (Market, error)
func (*ExchangeQueries) GetExchangeMarkets ¶
func (eq *ExchangeQueries) GetExchangeMarkets(exchange string) (map[string]Market, error)
func (*ExchangeQueries) GetExchanges ¶
func (cq *ExchangeQueries) GetExchanges() Exchanges
func (*ExchangeQueries) MarketHandler ¶
func (eq *ExchangeQueries) MarketHandler(w http.ResponseWriter, r *http.Request)
CoinsHandler handles a request for coin data
func (*ExchangeQueries) MarketsHandler ¶
func (eq *ExchangeQueries) MarketsHandler(w http.ResponseWriter, r *http.Request)
CoinsHandler handles a request for coin data
func (*ExchangeQueries) SetExchange ¶
func (eq *ExchangeQueries) SetExchange(src, slug string, get func(e *Exchange))
func (*ExchangeQueries) SetMarkets ¶
func (eq *ExchangeQueries) SetMarkets(slug string, marketsSrc map[string]MarketSrc)
func (*ExchangeQueries) WriteExchange ¶
func (cq *ExchangeQueries) WriteExchange(slug string, c interface{}) error
func (*ExchangeQueries) WriteMarkets ¶
func (cq *ExchangeQueries) WriteMarkets(slug string, c interface{}) error
type ExchangeShort ¶
type ExchangeSrc ¶
type ExchangeSrc struct { Name string Slug string APIUrl string Volume float64 Markets map[string]MarketSrc Ticker ExchangeTicker }
func (*ExchangeSrc) SetCurrencyMarket ¶
func (e *ExchangeSrc) SetCurrencyMarket(market, symbol string, ask, bid, high, last, low, vol interface{})
type ExchangeTicker ¶
type ExchangeTicker struct {
Ask, Bid, High24, Last, Low24, Vol string
}
Click to show internal directories.
Click to hide internal directories.