Documentation ¶
Index ¶
- Constants
- func NormalizeCurrencyCode(currencyCode string) string
- type BitPayDecoder
- type BitcoinAverageDecoder
- type BitcoinChartsDecoder
- type BitcoinPriceFetcher
- func (b *BitcoinPriceFetcher) GetAllRates(cacheOK bool) (map[string]float64, error)
- func (b *BitcoinPriceFetcher) GetExchangeRate(currencyCode string) (float64, error)
- func (b *BitcoinPriceFetcher) GetLatestRate(currencyCode string) (float64, error)
- func (b *BitcoinPriceFetcher) Run()
- func (b *BitcoinPriceFetcher) UnitsPerCoin() int
- type BlockchainInfoDecoder
- type ExchangeRateDecoder
- type ExchangeRateProvider
Constants ¶
View Source
const SatoshiPerBTC = 100000000
Variables ¶
This section is empty.
Functions ¶
func NormalizeCurrencyCode ¶
NormalizeCurrencyCode standardizes the format for the given currency code
Types ¶
type BitPayDecoder ¶
type BitPayDecoder struct{}
type BitcoinAverageDecoder ¶
type BitcoinAverageDecoder struct{}
empty structs to tag the different ExchangeRateDecoder implementations
type BitcoinChartsDecoder ¶
type BitcoinChartsDecoder struct{}
type BitcoinPriceFetcher ¶
func NewBitcoinPriceFetcher ¶
func NewBitcoinPriceFetcher(dialer proxy.Dialer) *BitcoinPriceFetcher
func (*BitcoinPriceFetcher) GetAllRates ¶
func (b *BitcoinPriceFetcher) GetAllRates(cacheOK bool) (map[string]float64, error)
func (*BitcoinPriceFetcher) GetExchangeRate ¶
func (b *BitcoinPriceFetcher) GetExchangeRate(currencyCode string) (float64, error)
func (*BitcoinPriceFetcher) GetLatestRate ¶
func (b *BitcoinPriceFetcher) GetLatestRate(currencyCode string) (float64, error)
func (*BitcoinPriceFetcher) Run ¶
func (b *BitcoinPriceFetcher) Run()
func (*BitcoinPriceFetcher) UnitsPerCoin ¶
func (b *BitcoinPriceFetcher) UnitsPerCoin() int
type BlockchainInfoDecoder ¶
type BlockchainInfoDecoder struct{}
type ExchangeRateDecoder ¶
type ExchangeRateDecoder interface {
// contains filtered or unexported methods
}
type ExchangeRateProvider ¶
type ExchangeRateProvider struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.